Skip to content

Library Reference

Nam Tran edited this page Apr 4, 2017 · 1 revision

The following modules, classes, and functions exist between the GW Nanpy and gwrobolib libraries and are commonly used. There are others that exist that can be found within the respective repository.

Nanpy

ColorSensor

Measures the RGB values of an area and returns as a value between 0 and 255.

Counter

Equivalent of FreqCount library. Used to measure the input frequency of a signal optimally between 1kHz and 8MHz.

Eeprom

Esp

For use with an Esp8266 WiFi module.

I2C

I2C communication protocol, meant to be a replacement for Wire.h in Arduino library.

SerialManager

Servo

Stepper

Ultrasonic

gwrobolib

RobotDrive

Drivetrain module and class that contains commonly used drivetrain code (hDrive, tankDrive, arcadeDrive, etc)

Actuators

Module containing all actuators

Motor

Solenoid

Sensors

Module containing all sensors not requiring Nanpy necessarily

FlameSensor

LimitSwitch (to be changed to DigitalInput)

Robotmap

Class to make wiring.cfg to the robot's pins

RobotMath

Common mathematics useful for robotics

Clone this wiki locally