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

Committer:
DaniusKalv
Date:
Wed Jun 25 19:35:13 2014 +0000
Revision:
4:de56a118e704
Parent:
3:35a47548d29d
Child:
5:76dd6da3e640
Works fine without thread

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DaniusKalv 0:06ac39308380 1 #include "mbed.h"
DaniusKalv 0:06ac39308380 2 #include "matrix.h"
DaniusKalv 2:3cc1e2dec7a2 3 #include "text.h"
DaniusKalv 3:35a47548d29d 4 #include "rtos.h"
DaniusKalv 2:3cc1e2dec7a2 5
DaniusKalv 2:3cc1e2dec7a2 6 text generator;
DaniusKalv 3:35a47548d29d 7 matrix display(p13, p12, p11, p14, p15, p17, p16);
DaniusKalv 0:06ac39308380 8
DaniusKalv 0:06ac39308380 9 int main() {
DaniusKalv 4:de56a118e704 10 //generator.generate("LABAS LAURYNUK!");
DaniusKalv 4:de56a118e704 11 //while(true){
DaniusKalv 3:35a47548d29d 12 display.show();
DaniusKalv 4:de56a118e704 13 //}
DaniusKalv 2:3cc1e2dec7a2 14 //matrix("WELCOME!");
DaniusKalv 0:06ac39308380 15 }