This is an example program for the PololuLedStrip library. It generates a simple moving rainbow pattern.

Dependencies:   PololuLedStrip mbed

For more information, see the PololuLedStrip library.

Revision:
1:3d89bcd21002
Parent:
0:a3a9c486fc68
Child:
2:69cc4148a7fa
--- a/main.cpp	Wed Feb 27 02:45:50 2013 +0000
+++ b/main.cpp	Thu Feb 28 00:04:20 2013 +0000
@@ -34,9 +34,8 @@
 
     while(1)
     {
-        uint32_t time = timer.read_ms();
-        
         // Update the colors array.
+        uint32_t time = timer.read_ms();       
         for(int i = 0; i < LED_COUNT; i++)
         {
             uint8_t phase = (time >> 4) - (i << 2);