|
|
@ -27,11 +27,13 @@ namespace example {
|
|
|
|
class TestLEDMode : public LEDMode {
|
|
|
|
class TestLEDMode : public LEDMode {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TestLEDMode() {}
|
|
|
|
TestLEDMode() {}
|
|
|
|
void begin(void) final;
|
|
|
|
|
|
|
|
void update(void) final;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static bool focusHook(const char *command);
|
|
|
|
static bool focusHook(const char *command);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void setup(void) final;
|
|
|
|
|
|
|
|
void update(void) final;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static uint16_t map_base_;
|
|
|
|
static uint16_t map_base_;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -39,8 +41,7 @@ class TestLEDMode : public LEDMode {
|
|
|
|
uint16_t TestLEDMode::map_base_;
|
|
|
|
uint16_t TestLEDMode::map_base_;
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
TestLEDMode::begin(void) {
|
|
|
|
TestLEDMode::setup(void) {
|
|
|
|
LEDMode::begin();
|
|
|
|
|
|
|
|
map_base_ = LEDPaletteTheme.reserveThemes(1);
|
|
|
|
map_base_ = LEDPaletteTheme.reserveThemes(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|