Fix USB diagnostic command to use native USB API

This commit is contained in:
2026-06-24 00:47:00 +00:00
parent 10f5117a15
commit 65d8120abb
+2 -2
View File
@@ -83,8 +83,8 @@ void handle_serial_command(const String& cmd) {
mux.show(); mux.show();
Serial.println("[CMD] Pixel 1 WHITE (max brightness)"); Serial.println("[CMD] Pixel 1 WHITE (max brightness)");
} else if (cmd == "usb") { } else if (cmd == "usb") {
Serial.printf("[CMD] USB mounted: %s\n", TinyUSBDevice.mounted() ? "YES" : "NO"); Serial.printf("[CMD] USB mounted: %s\n", USB.mounted() ? "YES" : "NO");
Serial.printf("[CMD] USB ready: %s\n", TinyUSBDevice.ready() ? "YES" : "NO"); Serial.printf("[CMD] USB ready: %s\n", USB.ready() ? "YES" : "NO");
} else if (cmd == "gpiotest") { } else if (cmd == "gpiotest") {
Serial.println("[CMD] === Raw GPIO Test ==="); Serial.println("[CMD] === Raw GPIO Test ===");
uint8_t pins[] = {9, 10, 11, 12}; uint8_t pins[] = {9, 10, 11, 12};