Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: PixelSource.h
- Revision:
- 1:6ae4383194a1
- Child:
- 5:fa9eb887e9a6
--- /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