Formatting

This commit is contained in:
Daniel Kluge 2023-12-16 12:58:34 +01:00
parent 7bf222228e
commit 262ecbd928

View File

@ -118,6 +118,7 @@ void loop() {
// Send MIDI message
usbMIDI.sendNoteOn(mapToMidi(active_key_group, i), 127, 1);
}
// Set the entry in the array
keys_pressed[active_key_group * 6 + i] += keys_pressed[active_key_group * 6 + i] < 0xFF ? 1 : 0;
} else {
@ -126,6 +127,7 @@ void loop() {
// Send MIDI message
usbMIDI.sendNoteOff(mapToMidi(active_key_group, i), 0, 1);
}
// Set the entry in the array
keys_pressed[active_key_group * 6 + i] = 0;
}
@ -133,8 +135,7 @@ void loop() {
}
// MIDI Controllers should discard incoming MIDI messages.
while (usbMIDI.read()) {
}
while (usbMIDI.read()) {}
// switch to next key group, if self powered
if (digitalReadFast(POWER_SUPPLY_CHECK_PIN) == LOW) {