Updated the example to work with the new LEDControl APIs

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/389/head
Gergely Nagy 7 years ago
parent ad076a36dd
commit bbf5ae3a08

@ -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);
} }

Loading…
Cancel
Save