Better MUX probe: 5 rounds, CLK before/after DI reads, single LED test

This commit is contained in:
2026-06-23 14:01:51 +00:00
parent 5de4de4f1a
commit 0db36a0129
2 changed files with 51 additions and 27 deletions
+9 -1
View File
@@ -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)) {