This program was forked in order to control LED strips at the Heriot Watt Robotics Society Hamilton Circle Electronics workshop

Dependencies:   PololuLedStrip mbed

Fork of LedStripRainbow by David Grayson

Files at this revision

API Documentation at this revision

Comitter:
DavidEGrayson
Date:
Thu Feb 28 00:04:20 2013 +0000
Parent:
0:a3a9c486fc68
Child:
2:69cc4148a7fa
Commit message:
Not much;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);