From 8f1c05c4001aed630012abd2b48ee47abb71c833 Mon Sep 17 00:00:00 2001 From: Evy Bongers Date: Tue, 7 May 2024 22:40:51 +0200 Subject: [PATCH] Use constants for setting led palette Signed-off-by: Evy Bongers --- .../Devices/Keyboardio/Model100/Model100.ino | 51 ++++++++++--------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/examples/Devices/Keyboardio/Model100/Model100.ino b/examples/Devices/Keyboardio/Model100/Model100.ino index 119aa6da1..b53b25804 100644 --- a/examples/Devices/Keyboardio/Model100/Model100.ino +++ b/examples/Devices/Keyboardio/Model100/Model100.ino @@ -306,31 +306,34 @@ KEYMAPS( ___) ) // KEYMAPS( +#define RGB_UNSET CRGB(0x00, 0x00, 0x00) +#define RGB_RED CRGB(0xff, 0x00, 0x00) + PALETTE( - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0x00, 0x00, 0x00), - CRGB(0xff, 0x00, 0x00) + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_UNSET, + RGB_RED ) // PALETTE( /* Re-enable astyle's indent enforcement */