Better MUX probe: 5 rounds, CLK before/after DI reads, single LED test
This commit is contained in:
@@ -23,13 +23,21 @@ bool UsbMidiTransport::begin() {
|
||||
}
|
||||
|
||||
initialized = true;
|
||||
Serial.println("[MIDI] USB MIDI ready");
|
||||
Serial.println("[MIDI] USB MIDI ready - enumerating...");
|
||||
return true;
|
||||
}
|
||||
|
||||
void UsbMidiTransport::update() {
|
||||
if (!initialized) return;
|
||||
|
||||
static uint32_t last_status = 0;
|
||||
uint32_t now = millis();
|
||||
if (now - last_status > 5000) {
|
||||
last_status = now;
|
||||
Serial.printf("[MIDI] USB mounted: %s\n",
|
||||
TinyUSBDevice.mounted() ? "YES" : "NO");
|
||||
}
|
||||
|
||||
while (usb_midi.available()) {
|
||||
uint8_t packet[4];
|
||||
if (usb_midi.readPacket(packet)) {
|
||||
|
||||
Reference in New Issue
Block a user