Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit_WS2801 mbed
Diff: main.cpp
- Revision:
- 1:54cf3c557fdf
- Parent:
- 0:63c1f03ccb9c
--- a/main.cpp Fri Jan 16 05:36:27 2015 +0000
+++ b/main.cpp Fri Jan 16 05:42:59 2015 +0000
@@ -18,13 +18,12 @@
for (i = 0; i < LED_NUM; i++){
leds.setPixelColor(
i,
- ( color & RED ),
- ( color & BLUE ),
- ( color & GREEN )
+ ( color & RED > 0 ? 4 : 0 ),
+ ( color & BLUE > 0 ? 4 : 0 ),
+ ( color & GREEN > 0 ? 4 : 0 )
);
}
leds.show();
- wait_ms(1);
color = color * 2;