|
|
@ -28,14 +28,9 @@ namespace kaleidoscope {
|
|
|
|
uint16_t FingerPainter::color_base_;
|
|
|
|
uint16_t FingerPainter::color_base_;
|
|
|
|
bool FingerPainter::edit_mode_;
|
|
|
|
bool FingerPainter::edit_mode_;
|
|
|
|
|
|
|
|
|
|
|
|
FingerPainter::FingerPainter(void) {
|
|
|
|
void FingerPainter::setup(void) {
|
|
|
|
}
|
|
|
|
Kaleidoscope.use(&::LEDPaletteTheme);
|
|
|
|
|
|
|
|
Kaleidoscope.useEventHandlerHook(eventHandlerHook);
|
|
|
|
void FingerPainter::begin(void) {
|
|
|
|
|
|
|
|
USE_PLUGINS(&::LEDPaletteTheme);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LEDMode::begin();
|
|
|
|
|
|
|
|
event_handler_hook_use(eventHandlerHook);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
color_base_ = ::LEDPaletteTheme.reserveThemes(1);
|
|
|
|
color_base_ = ::LEDPaletteTheme.reserveThemes(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -44,6 +39,10 @@ void FingerPainter::update(void) {
|
|
|
|
::LEDPaletteTheme.updateHandler(color_base_, 0);
|
|
|
|
::LEDPaletteTheme.updateHandler(color_base_, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void FingerPainter::refreshAt(byte row, byte col) {
|
|
|
|
|
|
|
|
::LEDPaletteTheme.refreshAt(color_base_, 0, row, col);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FingerPainter::toggle(void) {
|
|
|
|
void FingerPainter::toggle(void) {
|
|
|
|
edit_mode_ = !edit_mode_;
|
|
|
|
edit_mode_ = !edit_mode_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|