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

Dependencies:   PCA9955 mbed

Revision:
5:e0d366e2a7f0
Parent:
4:0b1798094768
Child:
7:f4ca7df350e9
--- a/main.cpp	Tue Apr 08 15:22:37 2014 +0000
+++ b/main.cpp	Tue Apr 08 17:46:23 2014 +0000
@@ -1,8 +1,8 @@
 #include "mbed.h"
 #include "PCA9955.h"
 
-//Create a PCA9955 object using the LED All Call address
-PCA9955 driver(P0_5, P0_4, PCA9955::ADDRESS_ALL);
+//Create a PCA9955 object at the default address (ADDRESS_0)
+PCA9955 driver(p28, p27);
 
 int main()
 {
@@ -23,9 +23,8 @@
 
         while (1) {
             //Generate a breathing effect on all of the outputs
-            for (float i = 0.0f; i < 360.0f; i += 0.1f) {
+            for (float i = 0.0f; i < 360.0f; i += 0.1f)
                 driver = 0.5 * (sinf(i * 3.14159265f / 180.0f) + 1);
-            }
         }
     } else {
         error("Device not detected!\n");