Turning on specific leds when hitting a specific layer

(Gergely Nagy) #42

Sure thing! I’ll also try to update the UPGRADE docs so they’re less vague. I think I wrote a more detailed guide somewhere, will update the upgrade docs with that.

For the time being, a minimal example in spirit of the original:

class LayerColorOverride_: public kaleidoscope::Plugin {
  LayerColorOverride_() {}

  kaleidoscope::EventHandlerResult afterEachCycle() {
    LEDControl.setCrgbAt(0, 0, CRGB(255, 0, 0));
    return kaleidoscope::EventHandlerResult::OK;

LayerColorOverride_ LayerColorOverride;


You can get the highest active layer with Layer.top(), and can implement the coloring logic based on that.

Hope this helps!