|
|
@ -29,12 +29,7 @@ namespace kaleidoscope {
|
|
|
|
uint16_t ColormapEffect::map_base_;
|
|
|
|
uint16_t ColormapEffect::map_base_;
|
|
|
|
uint8_t ColormapEffect::max_layers_;
|
|
|
|
uint8_t ColormapEffect::max_layers_;
|
|
|
|
|
|
|
|
|
|
|
|
ColormapEffect::ColormapEffect(void) {
|
|
|
|
void ColormapEffect::setup(void) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ColormapEffect::begin(void) {
|
|
|
|
|
|
|
|
LEDMode::begin();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Kaleidoscope.use(&::EEPROMSettings, &::LEDPaletteTheme);
|
|
|
|
Kaleidoscope.use(&::EEPROMSettings, &::LEDPaletteTheme);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -55,6 +50,15 @@ void ColormapEffect::update(void) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void ColormapEffect::refreshAt(byte row, byte col) {
|
|
|
|
|
|
|
|
for (uint8_t l = 0; l < max_layers_; l++) {
|
|
|
|
|
|
|
|
if (!Layer.isOn(l))
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::LEDPaletteTheme.refreshAt(map_base_, l, row, col);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool ColormapEffect::focusHook(const char *command) {
|
|
|
|
bool ColormapEffect::focusHook(const char *command) {
|
|
|
|
return ::LEDPaletteTheme.themeFocusHandler(command, PSTR("colormap.map"),
|
|
|
|
return ::LEDPaletteTheme.themeFocusHandler(command, PSTR("colormap.map"),
|
|
|
|
map_base_, max_layers_);
|
|
|
|
map_base_, max_layers_);
|
|
|
|