Turning on specific leds when hitting a specific layer

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 {
public:
  LayerColorOverride_() {}

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

LayerColorOverride_ LayerColorOverride;

KALEIDOSCOPE_INIT_PLUGINS(
  LEDControl,
  LayerColorOverride,
  ...
)

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

Hope this helps!

2 Likes