More HACMan stuff again

Dependencies:   FatFileSystem SDFileSystem mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ledSign.h Source File

ledSign.h

00001 /*
00002 ledSign.h
00003 
00004 Header file for all LED sign processes for control
00005 
00006 */
00007 
00008 #ifndef LEDSIGN_H
00009 #define LEDSIGN_H
00010 
00011 #include "mbed.h"
00012 
00013 class LedSign {
00014 
00015 public:
00016 
00017 //Constructor - initialise all pins to 0
00018 LedSign();
00019 
00020 void enable();
00021 void disable();
00022 
00023 //Swaps the display buffers
00024 void swapBank();
00025 
00026 //writes a colour to the whole screen
00027 void writeScreenColour(int newColour);
00028 
00029 //write a row of LED's to the back buffer
00030 void writeRow(int * pointer, int wRow);
00031 
00032 private:
00033 
00034 //Write the top and bottom buffer lines to memory
00035 void writeTop(int topAddress);
00036 void writeBot(int botAddress);
00037 
00038 //clock data into top and bottom banks
00039 void clockTop();
00040 void clockBot();
00041 void clockIn();
00042 
00043 };
00044 
00045 
00046 #endif