Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Diff: Effects/effect.h
- Revision:
- 1:f544810b6598
- Child:
- 3:7d32f46a38d3
diff -r 66a5d46a740f -r f544810b6598 Effects/effect.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Effects/effect.h Mon Nov 23 18:50:01 2015 +0000 @@ -0,0 +1,31 @@ +#pragma once + +#include "neopixel_string.h" + +namespace Effects { + + class Effect { + + private: + NeoPixelString * pixelstring; + int delay_ms; + Ticker ticker; + bool execute_effect; + + public: + Effect(NeoPixelString * pixelstring, int delay_ms); + + public: + NeoPixelString * getPixelString(void); + void start(void); + void stop(void); + bool needsExecutionTime(void); + + public: + virtual void execute(void); + + private: + void tick(void); + }; + +}; \ No newline at end of file