|
|
@ -21,21 +21,21 @@
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
namespace LEDEffects {
|
|
|
|
namespace LEDEffects {
|
|
|
|
|
|
|
|
|
|
|
|
TriColor::TriColor (cRGB baseColor, cRGB modColor, cRGB escColor) {
|
|
|
|
TriColor::TriColor(cRGB baseColor, cRGB modColor, cRGB escColor) {
|
|
|
|
this->baseColor = baseColor;
|
|
|
|
this->baseColor = baseColor;
|
|
|
|
this->modColor = modColor;
|
|
|
|
this->modColor = modColor;
|
|
|
|
this->escColor = escColor;
|
|
|
|
this->escColor = escColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
void
|
|
|
|
TriColor::update (void) {
|
|
|
|
TriColor::update(void) {
|
|
|
|
for (uint8_t r = 0; r < ROWS; r++) {
|
|
|
|
for (uint8_t r = 0; r < ROWS; r++) {
|
|
|
|
for (uint8_t c = 0; c < COLS; c++) {
|
|
|
|
for (uint8_t c = 0; c < COLS; c++) {
|
|
|
|
Key k = Layer.lookup (r, c);
|
|
|
|
Key k = Layer.lookup(r, c);
|
|
|
|
|
|
|
|
|
|
|
|
// Special keys are always modColor
|
|
|
|
// Special keys are always modColor
|
|
|
|
if (k.flags != 0) {
|
|
|
|
if (k.flags != 0) {
|
|
|
|
LEDControl.led_set_crgb_at (r, c, modColor);
|
|
|
|
LEDControl.led_set_crgb_at(r, c, modColor);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -55,7 +55,7 @@ TriColor::update (void) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LEDControl.led_set_crgb_at (r, c, color);
|
|
|
|
LEDControl.led_set_crgb_at(r, c, color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|