Servo driver for the Adafruit 16 channel PWM I2C module
Dependents: theRobot theRobotNEW theRobot theRobot ... more
Fork of Adafruit-PWM-Servo-Driver by
Revision 3:02a963fc3700, committed 2014-03-03
- Comitter:
- tashworth
- Date:
- Mon Mar 03 15:13:43 2014 +0000
- Parent:
- 0:9d01b5d37adc
- Commit message:
- just servo beginning code
Changed in this revision
Adafruit_PWMServoDriver.cpp | Show annotated file Show diff for this revision Revisions of this file |
Adafruit_PWMServoDriver.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_PWMServoDriver.cpp Sat Aug 17 09:01:33 2013 +0000 +++ b/Adafruit_PWMServoDriver.cpp Mon Mar 03 15:13:43 2014 +0000 @@ -103,4 +103,7 @@ cmd[0] = addr; cmd[1] = d; i2c.write(_i2caddr, cmd, 2); -} \ No newline at end of file +} + + + \ No newline at end of file
--- a/Adafruit_PWMServoDriver.h Sat Aug 17 09:01:33 2013 +0000 +++ b/Adafruit_PWMServoDriver.h Mon Mar 03 15:13:43 2014 +0000 @@ -45,6 +45,7 @@ #define ALLLED_OFF_H 0xFD + class Adafruit_PWMServoDriver { public: Adafruit_PWMServoDriver(PinName sda, PinName scl, int addr = 0x80); //0b 1_000000_(R/W) <- default slave adress