Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Diff: Effects/periodic_effect.h
- Revision:
- 3:7d32f46a38d3
diff -r bb9ebad05691 -r 7d32f46a38d3 Effects/periodic_effect.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Effects/periodic_effect.h Fri Apr 15 14:38:13 2016 +0000 @@ -0,0 +1,24 @@ +#pragma once + +#include "effect.h" + +namespace Effects { + + class PeriodicEffect : public Effect { + + private: + int delay_ms; + Ticker ticker; + + public: + PeriodicEffect(NeoPixelString * pixelstring, neopixel::Pixel color, int delay_ms); + + public: + virtual void start(void); + virtual void stop(void); + + private: + void tick(void); + }; + +}; \ No newline at end of file