This is a library for our Adafruit 16-channel PWM or any other board that uses the PCA9685 I2C PWM driver chip.
Dependents: K9_Head_Controller
Diff: Adafruit_PWMServoDriver.cpp
- Revision:
- 1:ac6c5e17c3d3
- Parent:
- 0:ed0c8a6481fd
- Child:
- 2:237e7b9d17c8
--- a/Adafruit_PWMServoDriver.cpp Sat Aug 17 06:59:05 2013 +0000 +++ b/Adafruit_PWMServoDriver.cpp Mon Aug 26 04:53:54 2013 +0000 @@ -83,5 +83,8 @@ void Adafruit_PWMServoDriver::write8(uint8_t addr, uint8_t d) { char data[] = { addr, d }; - _i2c->write(_i2caddr, data, 2); + if(_i2c->write(_i2caddr, data, 2)) + { + printf("No ACK on i2c write!"); + } } \ No newline at end of file