Skip to content

Commit

Permalink
Implement onLedEffectQuery on both rainbow effects
Browse files Browse the repository at this point in the history
Signed-off-by: Evy Bongers <[email protected]>
  • Loading branch information
EvyBongers committed Feb 13, 2024
1 parent 288ec12 commit d9d113c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ void LEDRainbowWaveEffect::TransientLEDMode::update() {
}
}

EventHandlerResult LEDRainbowWaveEffect::onLedEffectQuery() {
return ::Focus.sendName(F("LEDRainbowWaveEffect"));
}

void LEDRainbowWaveEffect::brightness(byte brightness) {
rainbow_value = brightness;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class LEDRainbowEffect : public Plugin,

class LEDRainbowWaveEffect : public Plugin, public LEDModeInterface {
public:
EventHandlerResult onLedEffectQuery();

void brightness(uint8_t);
uint8_t brightness() {
return rainbow_value;
Expand Down

0 comments on commit d9d113c

Please sign in to comment.