Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions src/Animations/Color.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};