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

matrix.h

Committer:
DaniusKalv
Date:
2015-10-03
Revision:
22:8a5ea75ad53b
Parent:
19:2b14139fb19f

File content as of revision 22:8a5ea75ad53b:

#ifndef MBED_MATRIX_H_
#define MBED_MATRIX_H_

#include "mbed.h"

void led_thread(void const *args);

class matrix{
private:
    int length;
    int display[8][16];
    Serial pc;
    LocalFileSystem local;
    FILE *fp; 
    DigitalOut in3;
    DigitalOut in2;
    DigitalOut in1;
    DigitalOut clr1;
    DigitalOut clr;
    DigitalOut clk1;
    DigitalOut clk;   
public:
    matrix(PinName _in1, PinName _in2, PinName _in3, PinName _clr, PinName _clr1, PinName _clk, PinName _clk1);
    void show();
    void clear();
    void multiplex();
    void clock(char *buffer, bool dot);
    void see();
};    

#endif /* matrix_H_ */