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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers numbers.h Source File

numbers.h

00001 #ifndef NUMBERS_H_
00002 #define NUMBERS_H_
00003 
00004 //uint8_t zero[3] = {0x3E, 0x22, 0x3E};
00005 
00006 //uint8_t one[3] = {0x00, 0x00, 0x3E};
00007 
00008 //uint8_t two[3] = {0x2E, 0x2A, 0x3A};
00009 
00010 //uint8_t three[3] = {0x2A, 0x2A, 0x3E};
00011 
00012 //uint8_t four[3] = {0x38, 0x08, 0x3E};
00013 
00014 //uint8_t five[3] = {0x3A, 0x2A, 0x2E};
00015 
00016 //uint8_t six[3] = {0x3E, 0x2A, 0x2E};
00017 
00018 //uint8_t seven[3] = {0x26, 0x28, 0x30};
00019 
00020 //uint8_t eight[3] = {0x3E, 0x2A, 0x3E};
00021 
00022 //uint8_t nine[3] = {0x3A, 0x2A, 0x3E};
00023 
00024 uint8_t number[3][10] = {
00025     {0x3E, 0x00, 0x2E, 0x2A, 0x38, 0x3A, 0x3E, 0x26, 0x3E, 0x3A},
00026     {0x22, 0x00, 0x2A, 0x2A, 0x08, 0x2A, 0x2A, 0x28, 0x2A, 0x2A},
00027     {0x3E, 0x3E, 0x3A, 0x3E, 0x3E, 0x2E, 0x2E, 0x30, 0x3E, 0x3E}};
00028     //0     1     2     3     4     5     6     7     8     9
00029 
00030 #endif