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
Diff: main.cpp
- Revision:
- 3:35a47548d29d
- Parent:
- 2:3cc1e2dec7a2
- Child:
- 4:de56a118e704
--- a/main.cpp Wed Jun 25 16:24:03 2014 +0000 +++ b/main.cpp Wed Jun 25 19:29:39 2014 +0000 @@ -1,12 +1,15 @@ #include "mbed.h" #include "matrix.h" #include "text.h" +#include "rtos.h" text generator; - +matrix display(p13, p12, p11, p14, p15, p17, p16); int main() { - generator.generate("LABAS KUGELI SU UOGIENE"); - + generator.generate("LABAS LAURYNUK!"); + while(true){ + display.show(); + } //matrix("WELCOME!"); } \ No newline at end of file