Blue LED matrix (8x16) program. Gets text string through bluetooth and displays it on led matrix. Also has a clock function- get system time from a phone through bluetooth and enters clock mode. In clock mode it acts as a clock showing hours and minutes and blinking led every second. Clock mode can be broken if a text string is received through bluetooth.

Dependencies:   mbed

Revision:
7:ca5ed7936472
Parent:
6:76b89d8b62a0
Child:
9:ed7e8a6fc537
--- a/main.cpp	Thu Oct 30 23:12:18 2014 +0000
+++ b/main.cpp	Fri Oct 31 10:49:39 2014 +0000
@@ -8,7 +8,7 @@
 DigitalOut led(LED1);
 Serial pc(USBTX, USBRX);
 Serial bluetooth(p28,p27);
-char line[256];
+char line[99];
 void receive();
 
 int main() {
@@ -36,5 +36,5 @@
         j++;
         wait(0.0004);       
     }
-    while(bluetooth.readable() && (j < i));
+    while(bluetooth.readable() && (j < i) && (j < 99));
 }
\ No newline at end of file