mirror of
https://github.com/C0ntroller/keyboard.git
synced 2024-11-22 14:34:48 +01:00
Formatting
This commit is contained in:
parent
7bf222228e
commit
262ecbd928
@ -118,6 +118,7 @@ void loop() {
|
|||||||
// Send MIDI message
|
// Send MIDI message
|
||||||
usbMIDI.sendNoteOn(mapToMidi(active_key_group, i), 127, 1);
|
usbMIDI.sendNoteOn(mapToMidi(active_key_group, i), 127, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the entry in the array
|
// Set the entry in the array
|
||||||
keys_pressed[active_key_group * 6 + i] += keys_pressed[active_key_group * 6 + i] < 0xFF ? 1 : 0;
|
keys_pressed[active_key_group * 6 + i] += keys_pressed[active_key_group * 6 + i] < 0xFF ? 1 : 0;
|
||||||
} else {
|
} else {
|
||||||
@ -126,6 +127,7 @@ void loop() {
|
|||||||
// Send MIDI message
|
// Send MIDI message
|
||||||
usbMIDI.sendNoteOff(mapToMidi(active_key_group, i), 0, 1);
|
usbMIDI.sendNoteOff(mapToMidi(active_key_group, i), 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the entry in the array
|
// Set the entry in the array
|
||||||
keys_pressed[active_key_group * 6 + i] = 0;
|
keys_pressed[active_key_group * 6 + i] = 0;
|
||||||
}
|
}
|
||||||
@ -133,8 +135,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MIDI Controllers should discard incoming MIDI messages.
|
// MIDI Controllers should discard incoming MIDI messages.
|
||||||
while (usbMIDI.read()) {
|
while (usbMIDI.read()) {}
|
||||||
}
|
|
||||||
|
|
||||||
// switch to next key group, if self powered
|
// switch to next key group, if self powered
|
||||||
if (digitalReadFast(POWER_SUPPLY_CHECK_PIN) == LOW) {
|
if (digitalReadFast(POWER_SUPPLY_CHECK_PIN) == LOW) {
|
||||||
|
Loading…
Reference in New Issue
Block a user