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
numbers.h
- Committer:
- DaniusKalv
- Date:
- 2015-10-03
- Revision:
- 22:8a5ea75ad53b
- Parent:
- 18:fe3809cdc50a
File content as of revision 22:8a5ea75ad53b:
#ifndef NUMBERS_H_ #define NUMBERS_H_ //uint8_t zero[3] = {0x3E, 0x22, 0x3E}; //uint8_t one[3] = {0x00, 0x00, 0x3E}; //uint8_t two[3] = {0x2E, 0x2A, 0x3A}; //uint8_t three[3] = {0x2A, 0x2A, 0x3E}; //uint8_t four[3] = {0x38, 0x08, 0x3E}; //uint8_t five[3] = {0x3A, 0x2A, 0x2E}; //uint8_t six[3] = {0x3E, 0x2A, 0x2E}; //uint8_t seven[3] = {0x26, 0x28, 0x30}; //uint8_t eight[3] = {0x3E, 0x2A, 0x3E}; //uint8_t nine[3] = {0x3A, 0x2A, 0x3E}; uint8_t number[3][10] = { {0x3E, 0x00, 0x2E, 0x2A, 0x38, 0x3A, 0x3E, 0x26, 0x3E, 0x3A}, {0x22, 0x00, 0x2A, 0x2A, 0x08, 0x2A, 0x2A, 0x28, 0x2A, 0x2A}, {0x3E, 0x3E, 0x3A, 0x3E, 0x3E, 0x2E, 0x2E, 0x30, 0x3E, 0x3E}}; //0 1 2 3 4 5 6 7 8 9 #endif