
LED Demo for Tech Con 2014
Dependencies: EthernetInterface PololuLedStripx mbed-rtos mbed nanoservice_client_1_12_X
Fork of LPC1768_LWM2M_Client by
Revision 9:a580c20d6bb5, committed 2014-09-29
- Comitter:
- michaeljkoster
- Date:
- Mon Sep 29 21:11:33 2014 +0000
- Parent:
- 8:1358fc888c9c
- Child:
- 10:5ecaf86d3936
- Commit message:
- Fixup
Changed in this revision
IAP.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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IAP.lib Mon Sep 29 21:11:33 2014 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/jaerts/code/IAP/#7484398d50ea
--- 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); + } } }