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: DemoPixelSource.h
- Revision:
- 1:6ae4383194a1
- Child:
- 4:a038b8b2ee11
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DemoPixelSource.h Mon Oct 15 03:53:22 2018 +0000
@@ -0,0 +1,17 @@
+#ifndef DEMOPIXELSOURCE_H
+#define DEMOPIXELSOURCE_H
+
+#include "PixelSource.h"
+
+namespace GDE {
+
+ class DemoPixelSource: public PixelSource {
+ public:
+ virtual unsigned char nextPixelGroup() {
+ return (count++ & 1) ? 0xff : 0x00;
+ }
+ };
+
+}
+
+#endif
\ No newline at end of file
