Skip to content

Commit

Permalink
Use constants for setting led palette
Browse files Browse the repository at this point in the history
Signed-off-by: Evy Bongers <[email protected]>
  • Loading branch information
EvyBongers committed May 7, 2024
1 parent 1b9ecf0 commit c82a759
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions examples/Devices/Keyboardio/Model100/Model100.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c82a759

Please sign in to comment.