A feature complete driver for the PCA9952/55 LED driver from NXP.
Dependents: PCA9955_HelloWorld
Diff: PCA9955.h
- Revision:
- 6:c8dc0211e18c
- Parent:
- 5:7ad949955db8
- Child:
- 7:7dd3cc73e873
diff -r 7ad949955db8 -r c8dc0211e18c PCA9955.h --- a/PCA9955.h Tue Nov 12 17:56:28 2013 +0000 +++ b/PCA9955.h Tue Apr 08 15:21:28 2014 +0000 @@ -39,6 +39,7 @@ * //Reset the device * //NOTE: This might reset other I2C devices as well! * driver.reset(); + * wait_ms(5); * * //Set all of the output states to PWM mode * driver.allOutputStates(PCA9955::OUTPUT_PWM); @@ -180,8 +181,11 @@ */ bool open(); - /** Issue an SWRST call to reset the PCA9952/55 - * @warning This might reset other I2C devices as well! + /** Issue an SWRST call to reset all PCA9952/55 devices on the bus + * + * @note Requires a 5ms delay before issuing additional commands + * + * @warning This might reset other I2C devices as well */ void reset();