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
Diff: LedCmdHandler.h
- Revision:
- 0:887096209439
diff -r 000000000000 -r 887096209439 LedCmdHandler.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LedCmdHandler.h Tue Aug 18 16:03:29 2015 +0000
@@ -0,0 +1,24 @@
+// Led Command Handler
+#include <list>
+#include "ledstrip.h"
+#include "Effect.h"
+
+class LedCmdHandler
+{
+ private:
+ std::list<Effect*> effects;
+ ledstrip* pLedStrip;
+ Effect* pCurEffect;
+
+ public:
+ LedCmdHandler(ledstrip* pleds)
+ {
+ pLedStrip = pleds;
+ AddEffects();
+ pCurEffect = NULL;
+ }
+ void AddEffects();
+ void DoCommand(char* cmdStr);
+ void NextGen();
+ void Stop();
+};