Open berkut0 opened 2 hours ago
The C3 doesn't have USB support as far as I remember.
@deshipu But the chip detects the Serial connection perfectly. So far it looks more like a bug.
How does it detect serial connection?
@deshipu
if supervisor.runtime.serial_connected:
pass
That seems correct to me? Since the board is using an external USB to serial chip, USB is never connected to the microcontroller itself, so the False response is correct.
ESP32-C3 has a native USB
Quoting from https://circuitpython.org/board/adafruit_qtpy_esp32c3/
ESP32-C3 is a low-cost microcontroller from Espressif that supports 2.4 GHz Wi-Fi and Bluetooth® Low Energy (Bluetooth LE). It has built-in USB-to-Serial, but not native USB - it cannot act as a keyboard or disk drive. The chip used here has 4MB of Flash memory, 400 KB of SRAM and can easily handle TLS connections.
@deshipu Aaah, thank you so much! That explains everything.
CircuitPython version
Code/REPL
Behavior
The LED should be green when the chip is connected via USB and red when the chip is connected to the power supply. In the case of rp2040-zero everything works perfectly, but esp32-c3 gives a false value all the time.
Description
No response
Additional information
No response