Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Effects/color_effect.cpp
- Committer:
- dwini
- Date:
- 2016-04-15
- Revision:
- 3:7d32f46a38d3
File content as of revision 3:7d32f46a38d3:
#include "color_effect.h" namespace Effects { ColorEffect::ColorEffect(NeoPixelString * pixelstring, neopixel::Pixel color) : Effect(pixelstring, color) { } void ColorEffect::start(void) { requestExecute(); } void ColorEffect::execute(void) { if (shouldExecute()) { clearExecute(); getPixelString()->update(getColor()); } } };