More HACMan stuff again
Dependencies: FatFileSystem SDFileSystem mbed
Diff: ledSign.h
- Revision:
- 0:ddc821040077
diff -r 000000000000 -r ddc821040077 ledSign.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ledSign.h Thu Jun 11 13:50:10 2015 +0000 @@ -0,0 +1,46 @@ +/* +ledSign.h + +Header file for all LED sign processes for control + +*/ + +#ifndef LEDSIGN_H +#define LEDSIGN_H + +#include "mbed.h" + +class LedSign { + +public: + +//Constructor - initialise all pins to 0 +LedSign(); + +void enable(); +void disable(); + +//Swaps the display buffers +void swapBank(); + +//writes a colour to the whole screen +void writeScreenColour(int newColour); + +//write a row of LED's to the back buffer +void writeRow(int * pointer, int wRow); + +private: + +//Write the top and bottom buffer lines to memory +void writeTop(int topAddress); +void writeBot(int botAddress); + +//clock data into top and bottom banks +void clockTop(); +void clockBot(); +void clockIn(); + +}; + + +#endif \ No newline at end of file