From bbf5ae3a0861220d178dc065231d358de6e2b8f3 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Thu, 17 Aug 2017 00:40:24 +0200 Subject: [PATCH] Updated the example to work with the new LEDControl APIs Signed-off-by: Gergely Nagy --- examples/LED-Palette-Theme/LED-Palette-Theme.ino | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/LED-Palette-Theme/LED-Palette-Theme.ino b/examples/LED-Palette-Theme/LED-Palette-Theme.ino index 17ad74bd..07619848 100644 --- a/examples/LED-Palette-Theme/LED-Palette-Theme.ino +++ b/examples/LED-Palette-Theme/LED-Palette-Theme.ino @@ -27,11 +27,13 @@ namespace example { class TestLEDMode : public LEDMode { public: TestLEDMode() {} - void begin(void) final; - void update(void) final; static bool focusHook(const char *command); + protected: + void setup(void) final; + void update(void) final; + private: static uint16_t map_base_; }; @@ -39,8 +41,7 @@ class TestLEDMode : public LEDMode { uint16_t TestLEDMode::map_base_; void -TestLEDMode::begin(void) { - LEDMode::begin(); +TestLEDMode::setup(void) { map_base_ = LEDPaletteTheme.reserveThemes(1); }