LED Demo for Tech Con 2014
Dependencies: EthernetInterface PololuLedStripx mbed-rtos mbed nanoservice_client_1_12_X
Fork of LPC1768_LWM2M_Client by
Diff: main.cpp
- Revision:
- 9:a580c20d6bb5
- Parent:
- 8:1358fc888c9c
- Child:
- 10:5ecaf86d3936
diff -r 1358fc888c9c -r a580c20d6bb5 main.cpp --- a/main.cpp Mon Sep 29 01:49:26 2014 +0000 +++ b/main.cpp Mon Sep 29 21:11:33 2014 +0000 @@ -7,8 +7,8 @@ #include "PololuLedStrip.h" PololuLedStrip ledStrip(P0_4); -#define LED_COUNT 60 -//#define LED_COUNT 120 +//#define LED_COUNT 60 +#define LED_COUNT 120 rgb_color colors[LED_COUNT]; Serial pc(USBTX, USBRX); // tx, rx @@ -158,8 +158,11 @@ else if(index == 0) { for(int i = 0; i < LED_COUNT; i++) + { colors[i] = (rgb_color) {red,green,blue} ; - ledStrip.write(colors, LED_COUNT); + ledStrip.write(colors, LED_COUNT); + wait_ms(10); + } } }