Fix palette: entries 121-127 now visible (was black). Remove local flash.

This commit is contained in:
ash
2026-06-30 05:05:06 +00:00
parent d59e36a9a5
commit ae2891fca8
2 changed files with 9 additions and 22 deletions
+2 -15
View File
@@ -130,24 +130,11 @@ void AppTask::process_switch_event(uint8_t switch_id, bool pressed) {
if (pad_mapping[i].physical_switch == switch_id) {
uint8_t channel = pad_mapping[i].midi_channel;
uint8_t cc_num = cc_map[i];
// Use palette index 21 (yellow) so feedback is visible
uint8_t value = pressed ? 21 : 0;
// Use palette index 127 (magenta) for visible feedback
uint8_t value = pressed ? 127 : 0;
if (pressed) {
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",