Fix USB MIDI enumeration: switch from ARDUINO_USB_MODE=1 to 0 (matches working Adafruit TinyUSB example), add explicit TinyUSBDevice.begin(0) and detach/attach re-enumeration, remove conflicting tusb_config.h

This commit is contained in:
2026-06-23 23:10:20 +00:00
parent d957e276bd
commit a3e86d0ddf
4 changed files with 21 additions and 24 deletions
+3 -2
View File
@@ -7,12 +7,13 @@ board = esp32-s3-devkitc-1
framework = arduino
lib_deps =
adafruit/Adafruit TinyUSB Library@^2.0.0
adafruit/Adafruit TinyUSB Library@^3.1.0
fastled/FastLED@^3.9.0
build_flags =
-DARDUINO_USB_MODE=1
-DARDUINO_USB_MODE=0
-DARDUINO_USB_CDC_ON_BOOT=1
-DUSE_TINYUSB=1
monitor_speed = 115200