1 #ifndef _SEESAW_SERVO_H 2 #define _SEESAW_SERVO_H 29 uint8_t
attach(
int pin,
int min,
int max);
37 void write(
int value);
bool attached()
check if the servo is attached yet
Definition: seesaw_servo.h:55
Class that stores state and functions for seesaw servo interface.
Definition: seesaw_servo.h:11
void writeMicroseconds(int value)
Write pulse width in microseconds.
Definition: seesaw_servo.cpp:87
int readMicroseconds()
get current value in microseconds
Definition: seesaw_servo.h:47
int read()
get current value
Definition: seesaw_servo.cpp:79
Class that stores state and functions for interacting with seesaw helper IC.
Definition: Adafruit_seesaw.h:235
#define SEESAW_ADDRESS
Default Seesaw I2C address.
Definition: Adafruit_seesaw.h:31
bool begin(uint8_t addr=SEESAW_ADDRESS, int8_t flow=-1)
begin the seesaw. This is only necessary if the seesaw is not already started
Definition: seesaw_servo.cpp:15
uint8_t attach(int pin)
attach the given pin to the next free channel, sets pinMode.
Definition: seesaw_servo.cpp:27
seesaw_Servo(Adafruit_seesaw *ss)
class constructor
Definition: seesaw_servo.h:20
void detach()
set attached to false
Definition: seesaw_servo.h:36
void write(int value)
write a value. if value is < 200 its treated as an angle, otherwise as pulse width in microseconds ...
Definition: seesaw_servo.cpp:62