Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Effects/effect.cpp
- Committer:
- dwini
- Date:
- 2016-04-15
- Revision:
- 3:7d32f46a38d3
- Parent:
- 1:f544810b6598
File content as of revision 3:7d32f46a38d3:
#include "effect.h" namespace Effects { Effect::Effect(NeoPixelString * pixelstring, neopixel::Pixel color) { this->pixelstring = pixelstring; this->color = color; doExecute = false; } void Effect::start(void) { doExecute = false; } void Effect::stop(void) { doExecute = false; } NeoPixelString * Effect::getPixelString(void) { return this->pixelstring; } neopixel::Pixel Effect::getColor(void) { return color; } void Effect::requestExecute(void) { doExecute = true; } void Effect::clearExecute(void) { doExecute = false; } bool Effect::shouldExecute(void) { return doExecute; } };