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
LedCmdHandler.h@0:887096209439, 2015-08-18 (annotated)
- Committer:
- Bobty
- Date:
- Tue Aug 18 16:03:29 2015 +0000
- Revision:
- 0:887096209439
Initial - unchanged since 2013
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Bobty | 0:887096209439 | 1 | // Led Command Handler |
| Bobty | 0:887096209439 | 2 | #include <list> |
| Bobty | 0:887096209439 | 3 | #include "ledstrip.h" |
| Bobty | 0:887096209439 | 4 | #include "Effect.h" |
| Bobty | 0:887096209439 | 5 | |
| Bobty | 0:887096209439 | 6 | class LedCmdHandler |
| Bobty | 0:887096209439 | 7 | { |
| Bobty | 0:887096209439 | 8 | private: |
| Bobty | 0:887096209439 | 9 | std::list<Effect*> effects; |
| Bobty | 0:887096209439 | 10 | ledstrip* pLedStrip; |
| Bobty | 0:887096209439 | 11 | Effect* pCurEffect; |
| Bobty | 0:887096209439 | 12 | |
| Bobty | 0:887096209439 | 13 | public: |
| Bobty | 0:887096209439 | 14 | LedCmdHandler(ledstrip* pleds) |
| Bobty | 0:887096209439 | 15 | { |
| Bobty | 0:887096209439 | 16 | pLedStrip = pleds; |
| Bobty | 0:887096209439 | 17 | AddEffects(); |
| Bobty | 0:887096209439 | 18 | pCurEffect = NULL; |
| Bobty | 0:887096209439 | 19 | } |
| Bobty | 0:887096209439 | 20 | void AddEffects(); |
| Bobty | 0:887096209439 | 21 | void DoCommand(char* cmdStr); |
| Bobty | 0:887096209439 | 22 | void NextGen(); |
| Bobty | 0:887096209439 | 23 | void Stop(); |
| Bobty | 0:887096209439 | 24 | }; |