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:13:23 2013 +0000
Parent:
16:eaed541b08b0
Child:
18:34ba573573df
Commit message:
Not sure.

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:09:55 2013 +0000
+++ b/PololuLedStrip.cpp	Fri Mar 01 05:13:23 2013 +0000
@@ -21,7 +21,9 @@
         // Try to generally compute what the delays should be for a ide range of clock frequencies.
         
         // The fudge factors below were experimentally chosen so that we would have
-        // 700/1300 ns pulses and a ~2500 ns period on the mbed NXP LPC1768 (96 MHz Cortex-M3).
+        // ~700/1300 ns pulses and a ~2500 ns period on the mbed NXP LPC1768 (96 MHz Cortex-M3).
+        // There seem to be some ~100 ns inconsistencies in the timing depending on which example program is
+        // running; the most likely explanation is some kind of flash caching that affects the timing.
         // 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;