main: drop unused keymappping task
This commit is contained in:
parent
cd6c097b76
commit
5bb29cc59c
22
src/main.cpp
22
src/main.cpp
@ -34,28 +34,6 @@ Display dpy(leds, HardwareConfig::MAX_LED_NUM, Static<ConfigService>::instance()
|
||||
}
|
||||
});*/
|
||||
|
||||
InputMapper keyMap([](const InputEvent& evt) {
|
||||
if (evt.intent == InputEvent::UserInput) {
|
||||
Buttons::Chord chord = (Buttons::Chord)evt.asInt();
|
||||
switch(chord) {
|
||||
case Buttons::Circle:
|
||||
return InputEvent::PowerToggle;
|
||||
break;
|
||||
case Buttons::Triangle:
|
||||
return InputEvent::NextPattern;
|
||||
break;
|
||||
case Buttons::Cross:
|
||||
return InputEvent::UserInput;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return InputEvent::None;
|
||||
}, "Keymap");
|
||||
|
||||
REGISTER_TASK(keyMap);
|
||||
|
||||
// Cycle some random colors
|
||||
ColorSequenceInput<9> idleCycle{{
|
||||
CRGB(0, 123, 167), // Cerulean
|
||||
|
Loading…
Reference in New Issue
Block a user