Skip to content

Commit

Permalink
Fix led mode names for TriColor effects
Browse files Browse the repository at this point in the history
Signed-off-by: Evy Bongers <[email protected]>
  • Loading branch information
EvyBongers committed Feb 25, 2024
1 parent 5379ec4 commit e97fed2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
#include "kaleidoscope/device/device.h" // for CRGB
#include "kaleidoscope/plugin/TriColor.h" // for TriColor

kaleidoscope::plugin::TriColor JukeboxEffect(CRGB(0xc8, 0xe8, 0xee), /* TM */
kaleidoscope::plugin::TriColor JukeboxEffect("Jukebox",
CRGB(0xc8, 0xe8, 0xee), /* TM */
CRGB(0xc3, 0xee, 0x8c), /* VCO */
CRGB(0x21, 0x38, 0xd7)); /* RN */

kaleidoscope::plugin::TriColor JukeboxAlternateEffect(CRGB(0xc8, 0xe8, 0xee), /* TM */
kaleidoscope::plugin::TriColor JukeboxAlternateEffect("JukeboxAlternate",
CRGB(0xc8, 0xe8, 0xee), /* TM */
CRGB(0x21, 0x38, 0xd7), /* RN */
CRGB(0xc3, 0xee, 0x8c)); /* VCO */
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
#include "kaleidoscope/device/device.h" // for CRGB
#include "kaleidoscope/plugin/TriColor.h" // for TriColor

kaleidoscope::plugin::TriColor MiamiEffect(CRGB(0x4e, 0xd6, 0xd6), /* Cyan */
kaleidoscope::plugin::TriColor MiamiEffect("Miami",
CRGB(0x4e, 0xd6, 0xd6), /* Cyan */
CRGB(0xaf, 0x67, 0xfa)); /* Magenta */
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
namespace kaleidoscope {
namespace plugin {

TriColor::TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color) {
TriColor::TriColor(char *customName, cRGB base_color, cRGB mod_color, cRGB esc_color) {
ledModeName = customName;
base_color_ = base_color;
mod_color_ = mod_color;
esc_color_ = esc_color;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ namespace plugin {
class TriColor : public Plugin,
public LEDModeInterface {
public:
TriColor() { ledModeName = "TriColor"; }
explicit TriColor(char *customName) { ledModeName = customName; }

TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color);
TriColor(char *customName, cRGB base_color, cRGB mod_color, cRGB esc_color);
TriColor(cRGB base_color, cRGB mod_color, cRGB esc_color)
: TriColor("TriColor", base_color, mod_color, esc_color) {}
TriColor(char *customName, cRGB base_color, cRGB mod_color)
: TriColor(customName, base_color, mod_color, mod_color) {}
TriColor(cRGB base_color, cRGB mod_color)
: TriColor(base_color, mod_color, mod_color) {}
: TriColor("TriColor", base_color, mod_color, mod_color) {}

// This class' instance has dynamic lifetime
//
Expand Down

0 comments on commit e97fed2

Please sign in to comment.