This is an example program for the PololuLedStrip library. It generates a simple moving gradient pattern.
Dependencies: PololuLedStrip mbed LedStripGradient
Dependents: LedStripGradient led_phare_crf
For more information, see the PololuLedStrip library.
Revision 13:a6258776625e, committed 2013-12-05
- Comitter:
- DavidEGrayson
- Date:
- Thu Dec 05 18:44:28 2013 +0000
- Parent:
- 12:866d90d2e64c
- Child:
- 14:deec0e9c10a4
- Commit message:
- Updated the library.
Changed in this revision
PololuLedStrip.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/PololuLedStrip.lib Wed Oct 09 01:33:06 2013 +0000 +++ b/PololuLedStrip.lib Thu Dec 05 18:44:28 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/DavidEGrayson/code/PololuLedStrip/#46d7ab0ba3e7 +http://mbed.org/users/DavidEGrayson/code/PololuLedStrip/#87fd6273e0ff
--- a/main.cpp Wed Oct 09 01:33:06 2013 +0000 +++ b/main.cpp Thu Dec 05 18:44:28 2013 +0000 @@ -16,7 +16,7 @@ { // Update the colors array. uint8_t time = timer.read_ms() >> 2; - for(int i = 0; i < LED_COUNT; i++) + for(uint32_t i = 0; i < LED_COUNT; i++) { uint8_t x = time - 8*i; colors[i] = (rgb_color){ x, 255 - x, x };