Skip to content

Commit

Permalink
Have PALETTE support 16 or more arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
EvyBongers committed May 2, 2024
1 parent 0a39cc6 commit f65db1f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class DefaultPalette : public Plugin {

#define PALETTE(p00, p01, p02, p03, p04, p05, p06, p07, \
p08, p09, p0a, p0b, p0c, p0d, p0e, p0f, \
p10, p11, p12, p13, p14, p15, p16, p17) \
...) \
namespace kaleidoscope { \
namespace plugin { \
namespace ledpalette { \
const cRGB palette[] PROGMEM = { \
p00, p01, p02, p03, p04, p05, p06, p07, \
p08, p09, p0a, p0b, p0c, p0d, p0e, p0f, \
p10, p11, p12, p13, p14, p15, p16, p17 \
p08, p09, p0a, p0b, p0c, p0d, p0e, p0f \
__VA_OPT__(,) __VA_ARGS__ \
}; \
bool palette_defined = true; \
} /* defaultcolormap */ \
Expand Down

0 comments on commit f65db1f

Please sign in to comment.