2 * GraphLCD driver library
4 * picctl.c - PIC controlled LCD driver class
6 * This file is released under the GNU General Public License. Refer
7 * to the COPYING file distributed with this package.
9 * Codebase by Andreas Regel <andreas.regel AT powarman.de>
10 * (c) 2007 Carsten Presser
13 #ifndef _GLCDDRIVERS_PICCTL_H_
14 #define _GLCDDRIVERS_PICCTL_H_
24 class cDriverPICCtl : public cDriver
28 unsigned char ** newLCD; // wanted state
29 unsigned char ** oldLCD; // current state
30 cDriverConfig * config;
31 cDriverConfig * oldConfig;
36 void CmdDispClearScreen(void);
37 void CmdSetMode(uint8_t mode);
38 void CmdDispSetManaged(void);
39 void CmdDispSetUnManaged(void);
40 void CmdDispSetBrightness(uint8_t percent);
41 void CmdDispSetColData(uint8_t yoffset, uint8_t xoffset, uint8_t length, uint8_t * data);
45 static void SignalHandler(int signal);
48 static cDriverPICCtl* instance; // die EINE instant
49 cDriverPICCtl(cDriverConfig * config); // Konstruktor
56 virtual void Set8Pixels(int x, int y, unsigned char data);
57 virtual void Refresh(bool refreshAll = false);
58 virtual void SetBrightness(unsigned int percent);
59 virtual void SetClock(unsigned int percent);
62 virtual ~cDriverPICCtl(); // Destruktor
63 static cDriverPICCtl* getInstance(cDriverConfig * config);