Add direct local LED feedback on button press
This commit is contained in:
@@ -135,6 +135,19 @@ void AppTask::process_switch_event(uint8_t switch_id, bool pressed) {
|
|||||||
|
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
midi_transport->send_cc(channel, cc_num, value);
|
midi_transport->send_cc(channel, cc_num, value);
|
||||||
|
led_driver->set_led_state(
|
||||||
|
pad_mapping[i].midi_note,
|
||||||
|
pad_mapping[i].midi_channel,
|
||||||
|
value,
|
||||||
|
i
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
led_driver->set_led_state(
|
||||||
|
pad_mapping[i].midi_note,
|
||||||
|
pad_mapping[i].midi_channel,
|
||||||
|
0,
|
||||||
|
i
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Serial.printf("[APP] Switch %d -> Ch%d CC%d Val%d (%s)\n",
|
Serial.printf("[APP] Switch %d -> Ch%d CC%d Val%d (%s)\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user