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 d70a15b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@
#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 {

cRGB LEDActiveLayerKeysEffect::default_layer_color_ = CRGB(0, 0, 0);
bool LEDActiveLayerKeysEffect::light_lower_layers = false;

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

LEDActiveLayerKeysEffect::TransientLEDMode::TransientLEDMode(
const LEDActiveLayerKeysEffect *parent)
: parent_(parent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class LEDActiveLayerKeysEffect : public Plugin,
public AccessTransientLEDMode {
public:
EventHandlerResult onLayerChange();
EventHandlerResult onLedEffectQuery();

template<uint8_t _colormap_size>
void setColormap(cRGB const (&colormap)[_colormap_size]) {
colormap_ = colormap;
Expand Down

0 comments on commit d70a15b

Please sign in to comment.