Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4346

MicroPython • Detecting USB serial connection ?

$
0
0
My GoogleFu seems to be failing me. The Pico SDK provides a means to detect when a USB serial connection has been established from a host, allows waiting until there is such a connection -

Code:

    stdio_init_all();    while (!stdio_usb_connected()) {        sleep_ms(100);    }
But I can't find any equivalent for 'stdio_usb_connected()' with RP2040 MicroPython.

Anyone know what it would be ?

Statistics: Posted by hippy — Fri Jan 19, 2024 1:24 pm — Replies 1 — Views 64



Viewing all articles
Browse latest Browse all 4346

Trending Articles