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
Revision 2:69cc4148a7fa, committed 2013-10-09
- Comitter:
- DavidEGrayson
- Date:
- Wed Oct 09 01:20:26 2013 +0000
- Parent:
- 1:3d89bcd21002
- Child:
- 3:972edaeae65c
- Commit message:
- initialize r, g, and b
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 Thu Feb 28 00:04:20 2013 +0000 +++ b/PololuLedStrip.lib Wed Oct 09 01:20:26 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/DavidEGrayson/code/PololuLedStrip/#809dae64a994 +http://mbed.org/users/DavidEGrayson/code/PololuLedStrip/#46d7ab0ba3e7
--- a/main.cpp Thu Feb 28 00:04:20 2013 +0000 +++ b/main.cpp Wed Oct 09 01:20:26 2013 +0000 @@ -16,7 +16,7 @@ float p = v * (1 - s); float q = v * (1 - f * s); float t = v * (1 - (1 - f) * s); - float r, g, b; + float r = 0, g = 0, b = 0; switch(i % 6){ case 0: r = v; g = t; b = p; break; case 1: r = q; g = v; b = p; break;