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 text.h Source File

text.h

00001 #ifndef MBED_TEXT_H
00002 #define MBED_TEXT_H
00003 
00004 #include "mbed.h"
00005 #include <string>
00006 
00007 class text {
00008 public: 
00009     text();
00010     void generate(string input);
00011     void letters(char take);
00012     void tempCheck();
00013     void calcLength(string input);
00014 
00015 private:
00016     int stringLength, length, letSize;
00017     uint8_t temp[8];
00018     Serial pc;
00019     LocalFileSystem local;
00020     FILE *fp;
00021 };
00022 
00023 #endif