This library lets you control the addressable RGB LED strips from Pololu Robotics. Forked to add selectable colour order (Support RGB or GRB Leds)

Fork of PololuLedStrip by David Grayson

Files at this revision

API Documentation at this revision

Comitter:
DavidEGrayson
Date:
Fri Mar 01 05:09:55 2013 +0000
Parent:
15:d69eebdee025
Child:
17:91fb934a2166
Commit message:
Fine tuned the fudge factors for the M3 at 96 MHz again. I'm not sure why they were not well tuned.

Changed in this revision

PololuLedStrip.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PololuLedStrip.cpp	Fri Mar 01 05:05:09 2013 +0000
+++ b/PololuLedStrip.cpp	Fri Mar 01 05:09:55 2013 +0000
@@ -25,8 +25,8 @@
         // If you ever change these numbers, it is important to check the the subtractions below
         // will not overflow in the worst case, which is f_mhz = 49.
         led_strip_write_delays[0] = 700*f_mhz/1000 - 23;
-        led_strip_write_delays[1] = 600*f_mhz/1000 - 28;
-        led_strip_write_delays[2] = 1200*f_mhz/1000 - 23;    
+        led_strip_write_delays[1] = 600*f_mhz/1000 - 18;
+        led_strip_write_delays[2] = 1200*f_mhz/1000 - 33;    
     }
  
     // Convert from units of cycles to units of half-cycles; it makes the assembly faster.