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

Dependencies:   PCA9955 mbed

Revision:
2:3bf093141522
Parent:
1:899dbe28da72
Child:
4:0b1798094768
--- a/main.cpp	Thu Nov 07 21:20:37 2013 +0000
+++ b/main.cpp	Fri Nov 08 16:34:50 2013 +0000
@@ -1,8 +1,8 @@
 #include "mbed.h"
 #include "PCA9955.h"
 
-//Create an PCA9955 object at the default address (ADDRESS_0)
-PCA9955 driver(p28, p27);
+//Create a PCA9955 object using the LED All Call address
+PCA9955 driver(p28, p27, PCA9955::ADDRESS_ALL);
 
 int main()
 {
@@ -14,10 +14,10 @@
         //NOTE: This might reset other I2C devices as well!
         driver.reset();
 
-        //Set all the output states to PWM mode
+        //Set all of the output states to PWM mode
         driver.allOutputStates(PCA9955::OUTPUT_PWM);
 
-        //Set the all of the output currents to maximum
+        //Set all of the output currents to maximum
         driver.allOutputCurrents(1.0);
 
         while (1) {