|
|
@ -82,10 +82,6 @@ class LEDMode : public kaleidoscope::Plugin {
|
|
|
|
* necessary initialization steps. Calls @ref setup at the end.
|
|
|
|
* necessary initialization steps. Calls @ref setup at the end.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
kaleidoscope::EventHandlerResult onSetup();
|
|
|
|
kaleidoscope::EventHandlerResult onSetup();
|
|
|
|
|
|
|
|
|
|
|
|
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
|
|
|
|
|
|
|
|
void begin();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class LEDControl : public kaleidoscope::Plugin {
|
|
|
|
class LEDControl : public kaleidoscope::Plugin {
|
|
|
@ -136,13 +132,6 @@ class LEDControl : public kaleidoscope::Plugin {
|
|
|
|
kaleidoscope::EventHandlerResult onKeyswitchEvent(Key &mappedKey, byte row, byte col, uint8_t keyState);
|
|
|
|
kaleidoscope::EventHandlerResult onKeyswitchEvent(Key &mappedKey, byte row, byte col, uint8_t keyState);
|
|
|
|
kaleidoscope::EventHandlerResult beforeReportingState();
|
|
|
|
kaleidoscope::EventHandlerResult beforeReportingState();
|
|
|
|
|
|
|
|
|
|
|
|
#if KALEIDOSCOPE_ENABLE_V1_PLUGIN_API
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void begin();
|
|
|
|
|
|
|
|
static Key legacyEventHandler(Key mapped_key, byte row, byte col, uint8_t key_state);
|
|
|
|
|
|
|
|
static void legacyLoopHook(bool is_post_clear);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static uint16_t syncTimer;
|
|
|
|
static uint16_t syncTimer;
|
|
|
|
static LEDMode *modes[LED_MAX_MODES];
|
|
|
|
static LEDMode *modes[LED_MAX_MODES];
|
|
|
|