summaryrefslogtreecommitdiff
path: root/glcddrivers/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'glcddrivers/image.h')
-rw-r--r--glcddrivers/image.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/glcddrivers/image.h b/glcddrivers/image.h
new file mode 100644
index 0000000..3e39e3f
--- /dev/null
+++ b/glcddrivers/image.h
@@ -0,0 +1,50 @@
+/*
+ * GraphLCD driver library
+ *
+ * image.h - Image output device
+ * Output goes to a image file instead of LCD.
+ *
+ * This file is released under the GNU General Public License. Refer
+ * to the COPYING file distributed with this package.
+ *
+ * (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
+ */
+
+#ifndef _GLCDDRIVERS_IMAGE_H_
+#define _GLCDDRIVERS_IMAGE_H_
+
+#include "driver.h"
+
+
+namespace GLCD
+{
+
+class cDriverConfig;
+
+class cDriverImage : public cDriver
+{
+private:
+ unsigned char * newLCD;
+ unsigned char * oldLCD;
+ cDriverConfig * config;
+ cDriverConfig * oldConfig;
+ int lineSize;
+ int counter;
+
+ int CheckSetup();
+
+public:
+ cDriverImage(cDriverConfig * config);
+ virtual ~cDriverImage();
+
+ 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