diff options
author | Karel Kočí <cynerd@email.cz> | 2022-12-11 11:11:18 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-12-11 11:11:18 +0100 |
commit | 000c20d71a54bd6a0914e696fc88b4161c17c45d (patch) | |
tree | 1647c69a40b47474610beca2e06847fd6fa52caa /control/ledctl.c | |
parent | 062236c37f1e84c3a8ae10cba5b223f2ef1775f9 (diff) | |
download | bigclown-leds-000c20d71a54bd6a0914e696fc88b4161c17c45d.tar.gz bigclown-leds-000c20d71a54bd6a0914e696fc88b4161c17c45d.tar.bz2 bigclown-leds-000c20d71a54bd6a0914e696fc88b4161c17c45d.zip |
Tweak the firmware
Diffstat (limited to 'control/ledctl.c')
-rw-r--r-- | control/ledctl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/control/ledctl.c b/control/ledctl.c index 76bdc67..8a5bfea 100644 --- a/control/ledctl.c +++ b/control/ledctl.c @@ -5,6 +5,7 @@ const char *mode_string[] = { + [MODE_SOLID_WARM] = "#70200A", [MODE_SOLID_RED] = "#FF0000", [MODE_SOLID_GREEN] = "#00FF00", [MODE_SOLID_BLUE] = "#0000FF", @@ -34,6 +35,7 @@ void click_left() { switch (state) { case STATE_DEFAULT: enabled = 1; + update_mode(); // just to make sure that all is in sync update_brightness(); break; case STATE_BRIGHTNESS_SELECT: @@ -43,7 +45,7 @@ void click_left() { break; case STATE_COLOR_SELECT: if (mode >= MODE_RAINBOW) - mode = MODE_SOLID_RED; + mode = MODE_SOLID_WARM; else mode++; update_mode(); @@ -65,7 +67,7 @@ void click_right() { update_brightness(); break; case STATE_COLOR_SELECT: - if (mode <= MODE_SOLID_RED) + if (mode <= MODE_SOLID_WARM) mode = MODE_RAINBOW; else mode--; |