Fix USB MIDI, add GPIO for switches and LEDs

- Remove TinyUSBDevice.begin() conflict with Arduino core
- Switch stub now reads GPIO with debounce (pins 1-10)
- LED stub now drives GPIO pins (pins 11-20) with startup animation
- All pins printed to console on init
This commit is contained in:
2026-06-23 13:18:20 +00:00
parent 22572b9baa
commit bb32ec65d1
3 changed files with 56 additions and 32 deletions
+2 -3
View File
@@ -11,7 +11,7 @@ UsbMidiTransport::~UsbMidiTransport() {
}
bool UsbMidiTransport::begin() {
Serial.println("[MIDI] Initializing USB MIDI...");
Serial.println("[MIDI] Setting up USB MIDI device...");
TinyUSBDevice.setManufacturerDescriptor("Ashley Strahle");
TinyUSBDevice.setProductDescriptor("Loopy Foot Controller");
@@ -22,9 +22,8 @@ bool UsbMidiTransport::begin() {
return false;
}
TinyUSBDevice.begin();
initialized = true;
Serial.println("[MIDI] USB MIDI initialized - waiting for host");
Serial.println("[MIDI] USB MIDI ready");
return true;
}