Library to control NeoPixel strings of RGB leds
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
Effects/effects_manager.cpp
- Committer:
- dwini
- Date:
- 2015-11-23
- Revision:
- 1:f544810b6598
- Child:
- 3:7d32f46a38d3
File content as of revision 1:f544810b6598:
#include "effects_manager.h" namespace Effects { EffectsManager::EffectsManager(void) { effect = 0; } void EffectsManager::registerEffect(Effect * effect) { this->effect = effect; this->effect->start(); } void EffectsManager::execute(void) { if (effect && effect->needsExecutionTime()) { effect->execute(); } } void EffectsManager::unregisterEffect(void) { this->effect->stop(); effect = 0; } };