This is a library for our Adafruit 16-channel PWM & Servo driver Pick one up today in the adafruit shop! ------> http://www.adafruit.com/products/815 These displays use I2C to communicate, 2 pins are required to interface. Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! Written by Limor Fried/Ladyada for Adafruit Industries. BSD license, check license.txt for more information All text above must be included in any redistribution

Revision:
1:ac6c5e17c3d3
Parent:
0:ed0c8a6481fd
Child:
2:237e7b9d17c8
diff -r ed0c8a6481fd -r ac6c5e17c3d3 Adafruit_PWMServoDriver.cpp
--- 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