Back to Adafruit TinyUSB Library v3.1.0 with full init ownership (no USE_TINYUSB=1 conflict)

This commit is contained in:
2026-06-24 00:53:13 +00:00
parent 65d8120abb
commit 9c95225a37
4 changed files with 39 additions and 10 deletions
+3 -2
View File
@@ -5,6 +5,7 @@
#include <driver/gpio.h>
#include <esp_rom_sys.h>
#include "midi_transport.h"
#include "Adafruit_TinyUSB.h"
#include "pixel_stomp_mux.h"
#include "led_stub.h"
#include "switch_stub.h"
@@ -83,8 +84,8 @@ void handle_serial_command(const String& cmd) {
mux.show();
Serial.println("[CMD] Pixel 1 WHITE (max brightness)");
} else if (cmd == "usb") {
Serial.printf("[CMD] USB mounted: %s\n", USB.mounted() ? "YES" : "NO");
Serial.printf("[CMD] USB ready: %s\n", USB.ready() ? "YES" : "NO");
Serial.printf("[CMD] USB mounted: %s\n", TinyUSBDevice.mounted() ? "YES" : "NO");
Serial.printf("[CMD] USB ready: %s\n", TinyUSBDevice.ready() ? "YES" : "NO");
} else if (cmd == "gpiotest") {
Serial.println("[CMD] === Raw GPIO Test ===");
uint8_t pins[] = {9, 10, 11, 12};