Harry Chen / EPD_GDEW075T8

Dependents:   EInkTest

PixelSource.h

Committer:
HarryChen
Date:
2018-10-17
Revision:
5:fa9eb887e9a6
Parent:
1:6ae4383194a1

File content as of revision 5:fa9eb887e9a6:

#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