Skip to content

Commit

Permalink
First onLedEffectQuery implementation
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 684eec0 commit 07a6834
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 @@ -25,6 +25,7 @@
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult, EventHandlerResult::OK
#include "kaleidoscope/layers.h" // for Layer
#include "kaleidoscope/plugin/LEDControl.h" // for LEDControl
#include "kaleidoscope/plugin/FocusSerial.h" // for Focus

namespace kaleidoscope {
namespace plugin {
Expand All @@ -37,6 +38,10 @@ LEDActiveLayerKeysEffect::TransientLEDMode::TransientLEDMode(
: parent_(parent),
active_color_{0, 0, 0} {}

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

cRGB LEDActiveLayerKeysEffect::TransientLEDMode::getLayerColor(uint8_t layer) {
cRGB color;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class LEDActiveLayerKeysEffect : public Plugin,
static void setDefaultColor(cRGB color) {
default_layer_color_ = color;
}
EventHandlerResult onLedEffectQuery();

// This class' instance has dynamic lifetime
//
Expand Down

0 comments on commit 07a6834

Please sign in to comment.