Send visible palette index 21 (yellow) instead of 127 (black) so feedback is visible

This commit is contained in:
ash
2026-06-30 04:49:30 +00:00
parent 62b0604508
commit 063fa2065d
+2 -1
View File
@@ -130,7 +130,8 @@ void AppTask::process_switch_event(uint8_t switch_id, bool pressed) {
if (pad_mapping[i].physical_switch == switch_id) { if (pad_mapping[i].physical_switch == switch_id) {
uint8_t channel = pad_mapping[i].midi_channel; uint8_t channel = pad_mapping[i].midi_channel;
uint8_t cc_num = cc_map[i]; uint8_t cc_num = cc_map[i];
uint8_t value = pressed ? 127 : 0; // Use palette index 21 (yellow) so feedback is visible
uint8_t value = pressed ? 21 : 0;
if (pressed) { if (pressed) {
midi_transport->send_cc(channel, cc_num, value); midi_transport->send_cc(channel, cc_num, value);