|
|
@ -19,16 +19,16 @@
|
|
|
|
#include <Kaleidoscope-LEDEffects.h>
|
|
|
|
#include <Kaleidoscope-LEDEffects.h>
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
|
|
@ -58,6 +58,6 @@ namespace KaleidoscopePlugins {
|
|
|
|
LEDControl.led_set_crgb_at (r, c, color);
|
|
|
|
LEDControl.led_set_crgb_at (r, c, color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|