|
|
|
@ -20,24 +20,26 @@
|
|
|
|
|
#include <Kaleidoscope-Ranges.h>
|
|
|
|
|
|
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
|
namespace LEDEffects {
|
|
|
|
|
cRGB ActiveModColorEffect::highlightColor = (cRGB) {0xff, 0xff, 0xff};
|
|
|
|
|
namespace LEDEffects {
|
|
|
|
|
cRGB ActiveModColorEffect::highlightColor = (cRGB) {
|
|
|
|
|
0xff, 0xff, 0xff
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ActiveModColorEffect::ActiveModColorEffect (void) {
|
|
|
|
|
}
|
|
|
|
|
ActiveModColorEffect::ActiveModColorEffect (void) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
ActiveModColorEffect::begin (void) {
|
|
|
|
|
void
|
|
|
|
|
ActiveModColorEffect::begin (void) {
|
|
|
|
|
loop_hook_use (loopHook);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
ActiveModColorEffect::configure (const cRGB highlightColor_) {
|
|
|
|
|
void
|
|
|
|
|
ActiveModColorEffect::configure (const cRGB highlightColor_) {
|
|
|
|
|
highlightColor = highlightColor_;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
ActiveModColorEffect::loopHook (bool postClear) {
|
|
|
|
|
void
|
|
|
|
|
ActiveModColorEffect::loopHook (bool postClear) {
|
|
|
|
|
if (postClear)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
@ -58,9 +60,9 @@ namespace KaleidoscopePlugins {
|
|
|
|
|
LEDControl.led_set_crgb_at (r, c, highlightColor);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect;
|
|
|
|
|