|
|
|
@ -19,16 +19,16 @@
|
|
|
|
|
#include <Kaleidoscope-LEDEffects.h>
|
|
|
|
|
|
|
|
|
|
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->modColor = modColor;
|
|
|
|
|
this->escColor = escColor;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
TriColor::update (void) {
|
|
|
|
|
void
|
|
|
|
|
TriColor::update (void) {
|
|
|
|
|
for (uint8_t r = 0; r < ROWS; r++) {
|
|
|
|
|
for (uint8_t c = 0; c < COLS; c++) {
|
|
|
|
|
Key k = Layer.lookup (r, c);
|
|
|
|
@ -58,6 +58,6 @@ namespace KaleidoscopePlugins {
|
|
|
|
|
LEDControl.led_set_crgb_at (r, c, color);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|