A simple serial test program for the PCA9952/55 library.

Dependencies:   PCA9955 mbed

Revision:
4:0b1798094768
Parent:
2:3bf093141522
Child:
5:e0d366e2a7f0
--- a/main.cpp	Tue Nov 12 17:57:55 2013 +0000
+++ b/main.cpp	Tue Apr 08 15:22:37 2014 +0000
@@ -2,7 +2,7 @@
 #include "PCA9955.h"
 
 //Create a PCA9955 object using the LED All Call address
-PCA9955 driver(p28, p27, PCA9955::ADDRESS_ALL);
+PCA9955 driver(P0_5, P0_4, PCA9955::ADDRESS_ALL);
 
 int main()
 {
@@ -13,6 +13,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);