Replies: 2 comments 2 replies
-
On stm32 you can use But you're asking about ESP32, which doesn't have USB, rather the boards typically provide a USB to UART adaptor. I guess you might be able to sense the VBUS line? But that won't tell you whether there's a PC on the other end, or just e.g. a USB power supply. On ESP32-S2/S3 there is USB support, but we don't currently expose any APIs for it. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I settled with a jumper cap. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, Is there any way to know if USB is connected or maybe a REPL session is started (whatever fits here ..., you got the idea)?
The use case: for example, in
boot.py
, on start, if USB is connected, the default task will be skipped. If not, default task will run immediately. or user project can skip debug output based on USB connection status etc.Beta Was this translation helpful? Give feedback.
All reactions