forked from Makuna/NeoPixelBus
Add stop all (#147)
This commit is contained in:
1 parent
a672d4ce55
commit
5b48c48551
2 files changed
+12
No files matched your search
@@ -108,6 +108,16 @@ void NeoPixelAnimator::StopAnimation(uint16_t indexAnimation)
|
||||
}
|
||||
}
|
||||
|
||||
void NeoPixelAnimator::StopAll()
|
||||
{
|
||||
for (uint16_t indexAnimation = 0; indexAnimation < _countAnimations; ++indexAnimation)
|
||||
{
|
||||
_animations[indexAnimation].StopAnimation();
|
||||
}
|
||||
_activeAnimations = 0;
|
||||
}
|
||||
|
||||
|
||||
void NeoPixelAnimator::UpdateAnimations()
|
||||
{
|
||||
if (_isRunning)
|
||||
|
||||
Reference in new issue
Block a user