Fix USB diagnostic command to use native USB API
This commit is contained in:
+2
-2
@@ -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};
|
||||||
|
|||||||
Reference in New Issue
Block a user