|
|
@ -31,7 +31,9 @@ namespace example {
|
|
|
|
class TestLEDMode : public LEDMode {
|
|
|
|
class TestLEDMode : public LEDMode {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
TestLEDMode() {}
|
|
|
|
TestLEDMode() {}
|
|
|
|
void begin(void) final;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void setup(void) final;
|
|
|
|
void update(void) final;
|
|
|
|
void update(void) final;
|
|
|
|
|
|
|
|
|
|
|
|
static bool focusHook(const char *command);
|
|
|
|
static bool focusHook(const char *command);
|
|
|
@ -42,14 +44,11 @@ class TestLEDMode : public LEDMode {
|
|
|
|
|
|
|
|
|
|
|
|
uint16_t TestLEDMode::map_base_;
|
|
|
|
uint16_t TestLEDMode::map_base_;
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void TestLEDMode::setup(void) {
|
|
|
|
TestLEDMode::begin(void) {
|
|
|
|
|
|
|
|
LEDMode::begin();
|
|
|
|
|
|
|
|
map_base_ = LEDPaletteTheme.reserveThemes(1);
|
|
|
|
map_base_ = LEDPaletteTheme.reserveThemes(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void TestLEDMode::update(void) {
|
|
|
|
TestLEDMode::update(void) {
|
|
|
|
|
|
|
|
LEDPaletteTheme.updateHandler(map_base_, 0);
|
|
|
|
LEDPaletteTheme.updateHandler(map_base_, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -65,7 +64,7 @@ example::TestLEDMode TestLEDMode;
|
|
|
|
void setup() {
|
|
|
|
void setup() {
|
|
|
|
Serial.begin(9600);
|
|
|
|
Serial.begin(9600);
|
|
|
|
|
|
|
|
|
|
|
|
USE_PLUGINS(&Focus, &LEDPaletteTheme, &TestLEDMode, &EEPROMSettings);
|
|
|
|
Kaleidoscope.use(&Focus, &LEDPaletteTheme, &TestLEDMode, &EEPROMSettings);
|
|
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
Kaleidoscope.setup();
|
|
|
|
|
|
|
|
|
|
|
|