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: text.cpp
- Revision:
- 8:f74b8d6f00d0
- Parent:
- 7:ca5ed7936472
- Child:
- 9:ed7e8a6fc537
--- a/text.cpp Fri Oct 31 10:49:39 2014 +0000 +++ b/text.cpp Sat Nov 01 15:54:29 2014 +0000 @@ -151,12 +151,12 @@ } void text::tempCheck(){ - for (int i = 0; i < 5; i++){ - pc.printf("\r\n"); - for (int j = 7; j > (-1); j--){ - pc.printf("%i", temp[j][i]); + pc.printf("\r\n"); + for (int i = 0; i < 8; i++){ + pc.printf("0x%02x ", temp[i]); } } + pc.printf("\r\n"); } void text::calcLength(string input){