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 14:adbb11e53c70, committed 2014-11-04
- Comitter:
- DaniusKalv
- Date:
- Tue Nov 04 01:48:07 2014 +0000
- Parent:
- 13:96590015edd8
- Child:
- 15:ba91aa788443
- Commit message:
- Shit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
matrix.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 04 01:41:06 2014 +0000 +++ b/main.cpp Tue Nov 04 01:48:07 2014 +0000 @@ -82,6 +82,6 @@ buffer_flag = true; buffer_mutex.unlock(); } - Thread::wait(10); + Thread::wait(5); } } \ No newline at end of file
--- a/matrix.cpp Tue Nov 04 01:41:06 2014 +0000 +++ b/matrix.cpp Tue Nov 04 01:48:07 2014 +0000 @@ -1,6 +1,6 @@ #include "matrix.h" #include "mbed.h" -#include "rtos.h" +//#include "rtos.h" matrix::matrix(PinName _in1, PinName _in2, PinName _in3, PinName _clr, PinName _clr1, PinName _clk, PinName _clk1): local("local"), in1(_in1), in2(_in2), @@ -71,7 +71,7 @@ clk1 = 0; //wait(del); } - Thread::wait(1); + wait(0.001); //pc.printf("\r\n"); a[i] = 1; a[i + 1] = 0;