Listens for instructions over serial and controls some NeoPixels.

Dependencies:   NeoStrip SerialDriver mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
rossng
Date:
Sun Jan 31 05:32:51 2016 +0000
Parent:
5:522612e4b18d
Commit message:
Initial public version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 522612e4b18d -r 795411948a6f main.cpp
--- a/main.cpp	Sun Jan 31 04:31:33 2016 +0000
+++ b/main.cpp	Sun Jan 31 05:32:51 2016 +0000
@@ -37,7 +37,7 @@
     
     //set_pattern(strip, 255, 255, 255);
 
-    set_mode(spin);
+    set_mode(flat);
     
     //char* line_buffer = (char*) malloc(100*sizeof(char));
     
@@ -50,7 +50,8 @@
         
         c = rpi.getc(); // get actual mode message
         
-        rpi.putc('\x06');
+        wait(0.1);
+        rpi.putc('\x3A');
         pc.printf("MBED: sent ack after receiving %c\r\n", c);