Harry Chen / EPD_GDEW075T8

Dependents:   EInkTest

Revision:
1:6ae4383194a1
Child:
5:fa9eb887e9a6
diff -r 518ad5d26088 -r 6ae4383194a1 PixelSource.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PixelSource.h	Mon Oct 15 03:53:22 2018 +0000
@@ -0,0 +1,23 @@
+#ifndef PIXELSOURCE_H
+#define PIXELSOURCE_H
+
+namespace GDE {
+
+    class PixelSource {
+    public:
+        virtual void init() {
+            count = 0;
+        };
+        virtual unsigned char nextPixelGroup() {
+            return 0xff;
+        }
+        virtual bool hasNext() {
+            return count < 640 * 384 / 8;
+        }
+    protected:
+        int count;
+    };
+
+}
+
+#endif
\ No newline at end of file