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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user