Code fonctionnel pour le chenillard de led du phare GE1
Dependencies: mbed LedStripGradient PololuLedStrip
Diff: main.cpp
- Revision:
- 13:a6258776625e
- Parent:
- 11:90f1a46b3724
- Child:
- 14:deec0e9c10a4
--- 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 };