Spidey Wall is the name for a physical wall lit up by multiple addressable LED strips. This program is an LPC1768 web server to control the wall from a browser.

Dependencies:   EthernetInterfacePlusHostname RdWebServer mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DrawingManager.h Source File

DrawingManager.h

00001 #ifndef DRAWING_MANAGER
00002 #define DRAWING_MANAGER
00003 
00004 //
00005 // Drawing Manager for LightWall
00006 // Rob Dobson 2015
00007 //
00008 
00009 #include "mbed.h"
00010 #include "ledstrip.h"
00011 
00012 class DrawingManager
00013 {
00014 public:
00015     DrawingManager();
00016     void Init(int numLeds, int splitPoint);
00017     void Clear();
00018     void RawFill(char* args, unsigned char* payload, int payloadLen, int payloadOffset);
00019     void Fill(char* args);
00020     void ShowLeds();
00021     void DisplayIdle(unsigned int stepCount);
00022 
00023 private:
00024     ledstrip* pLedStrip;
00025     bool isBusy;
00026     int GetIntFromNameValPair(char* buf, char* name, int invalidVal);
00027     unsigned char pRawFillPayloadOverhang[2];
00028     int rawFillPayloadOverhangBytes;
00029 };
00030 
00031 #endif