diff --git a/src/Animations/Color.h b/src/Animations/Color.h index 6471d5f..8d45baf 100644 --- a/src/Animations/Color.h +++ b/src/Animations/Color.h @@ -9,13 +9,17 @@ class Color : public Animation public: using Animation::Animation; - void reset() - { + CRGB _color; + + void setColor(CRGB color) { + _color = color; + FastLEDHub.getColorPicker(0)->value = _color; + } + void reset() { } - void loop() - { - CRGB color = FastLEDHub.getColorPicker(0)->value; - FastLEDHub.showColor(color); + void loop() { + _color = FastLEDHub.getColorPicker(0)->value; + FastLEDHub.showColor(_color); } };