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.
DemoPixelSource.h@1:6ae4383194a1, 2018-10-15 (annotated)
- Committer:
- HarryChen
- Date:
- Mon Oct 15 03:53:22 2018 +0000
- Revision:
- 1:6ae4383194a1
- Child:
- 4:a038b8b2ee11
Update library to use OO
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| HarryChen | 1:6ae4383194a1 | 1 | #ifndef DEMOPIXELSOURCE_H |
| HarryChen | 1:6ae4383194a1 | 2 | #define DEMOPIXELSOURCE_H |
| HarryChen | 1:6ae4383194a1 | 3 | |
| HarryChen | 1:6ae4383194a1 | 4 | #include "PixelSource.h" |
| HarryChen | 1:6ae4383194a1 | 5 | |
| HarryChen | 1:6ae4383194a1 | 6 | namespace GDE { |
| HarryChen | 1:6ae4383194a1 | 7 | |
| HarryChen | 1:6ae4383194a1 | 8 | class DemoPixelSource: public PixelSource { |
| HarryChen | 1:6ae4383194a1 | 9 | public: |
| HarryChen | 1:6ae4383194a1 | 10 | virtual unsigned char nextPixelGroup() { |
| HarryChen | 1:6ae4383194a1 | 11 | return (count++ & 1) ? 0xff : 0x00; |
| HarryChen | 1:6ae4383194a1 | 12 | } |
| HarryChen | 1:6ae4383194a1 | 13 | }; |
| HarryChen | 1:6ae4383194a1 | 14 | |
| HarryChen | 1:6ae4383194a1 | 15 | } |
| HarryChen | 1:6ae4383194a1 | 16 | |
| HarryChen | 1:6ae4383194a1 | 17 | #endif |
