Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NeoPixelI2cSlave NeoPixelI2cSlave
effects_manager.cpp
00001 #include "effects_manager.h" 00002 00003 namespace Effects { 00004 00005 EffectsManager::EffectsManager(void) { 00006 effect = 0; 00007 } 00008 00009 void EffectsManager::registerEffect(Effect * effect) { 00010 this->effect = effect; 00011 effect->start(); 00012 } 00013 00014 void EffectsManager::execute(void) { 00015 if (effect) { 00016 effect->execute(); 00017 } 00018 } 00019 00020 void EffectsManager::unregisterEffect(void) { 00021 effect->stop(); 00022 effect = 0; 00023 } 00024 00025 };
Generated on Fri Jul 15 2022 00:27:27 by
1.7.2