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.
Dependencies: EthernetInterfacePlusHostname RdWebServer mbed-rtos mbed
DrawingManager.h@4:b521815f2657, 2015-08-31 (annotated)
- Committer:
- Bobty
- Date:
- Mon Aug 31 15:21:47 2015 +0000
- Revision:
- 4:b521815f2657
- Parent:
- 2:99eb4c6e9ea4
- Child:
- 5:910909f34907
Tidied up and removed unnecessary code
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Bobty | 1:362331cec9b7 | 1 | #ifndef DRAWING_MANAGER |
| Bobty | 1:362331cec9b7 | 2 | #define DRAWING_MANAGER |
| Bobty | 1:362331cec9b7 | 3 | |
| Bobty | 4:b521815f2657 | 4 | // |
| Bobty | 4:b521815f2657 | 5 | // Drawing Manager for LightWall |
| Bobty | 4:b521815f2657 | 6 | // Rob Dobson 2015 |
| Bobty | 4:b521815f2657 | 7 | // |
| Bobty | 4:b521815f2657 | 8 | |
| Bobty | 1:362331cec9b7 | 9 | #include "mbed.h" |
| Bobty | 1:362331cec9b7 | 10 | #include "ledstrip.h" |
| Bobty | 1:362331cec9b7 | 11 | |
| Bobty | 1:362331cec9b7 | 12 | class DrawingManager |
| Bobty | 1:362331cec9b7 | 13 | { |
| Bobty | 1:362331cec9b7 | 14 | public: |
| Bobty | 2:99eb4c6e9ea4 | 15 | DrawingManager(); |
| Bobty | 4:b521815f2657 | 16 | void Init(int numLeds, int splitPoint); |
| Bobty | 4:b521815f2657 | 17 | void Clear(); |
| Bobty | 4:b521815f2657 | 18 | void RawFill(char* args, unsigned char* payload, int payloadLen, int payloadOffset); |
| Bobty | 4:b521815f2657 | 19 | void Fill(char* args); |
| Bobty | 4:b521815f2657 | 20 | void ShowLeds(); |
| Bobty | 4:b521815f2657 | 21 | |
| Bobty | 1:362331cec9b7 | 22 | |
| Bobty | 1:362331cec9b7 | 23 | private: |
| Bobty | 1:362331cec9b7 | 24 | ledstrip* pLedStrip; |
| Bobty | 1:362331cec9b7 | 25 | bool isBusy; |
| Bobty | 4:b521815f2657 | 26 | int GetIntFromNameValPair(char* buf, char* name, int invalidVal); |
| Bobty | 1:362331cec9b7 | 27 | }; |
| Bobty | 1:362331cec9b7 | 28 | |
| Bobty | 1:362331cec9b7 | 29 | #endif |