From 10ab31fa86dbf9875b5f6baa6ac59fefaaf86be3 Mon Sep 17 00:00:00 2001 From: andreas 'randy' weinberger Date: Sun, 21 Feb 2010 19:58:27 +0100 Subject: initial git upload, based on graphlcd-base-0.1.5 --- glcddrivers/hd61830.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 glcddrivers/hd61830.h (limited to 'glcddrivers/hd61830.h') diff --git a/glcddrivers/hd61830.h b/glcddrivers/hd61830.h new file mode 100644 index 0000000..50f3b26 --- /dev/null +++ b/glcddrivers/hd61830.h @@ -0,0 +1,54 @@ +/* + * GraphLCD driver library + * + * hd61830.h - HD61830 driver class + * + * This file is released under the GNU General Public License. Refer + * to the COPYING file distributed with this package. + * + * (c) 2001-2004 Carsten Siebholz + */ + +#ifndef _GLCDDRIVERS_HD61830_H_ +#define _GLCDDRIVERS_HD61830_H_ + +#include "driver.h" + +namespace GLCD +{ + +class cDriverConfig; +class cParallelPort; + +class cDriverHD61830 : public cDriver +{ +private: + cParallelPort * port; + + unsigned char ** newLCD; // wanted state + unsigned char ** oldLCD; // current state + cDriverConfig * config; + cDriverConfig * oldConfig; + int refreshCounter; + long timeForPortCmdInNs; + bool useSleepInit; + + int CheckSetup(); + int InitGraphic(); + void Write(unsigned char cmd, unsigned char data); + +public: + cDriverHD61830(cDriverConfig * config); + virtual ~cDriverHD61830(); + + virtual int Init(); + virtual int DeInit(); + + virtual void Clear(); + virtual void Set8Pixels(int x, int y, unsigned char data); + virtual void Refresh(bool refreshAll = false); +}; + +} // end of namespace + +#endif -- cgit v1.2.3