Quantcast
Channel: MicroPython Forum (Archive)
Browsing all 2 articles
Browse latest View live

rpi pico: How to detect that sys.stdout is connected

How can one detect if the usb serial is actually connected to the host pc?I have tried uselect.poll and test for uselect.POLLHUP and uselect.POLLERR without success,poll(0) always returns [].But if...

View Article



Re: rpi pico: How to detect that sys.stdout is connected

Being unable to find a solution in the micropython realm, I resorted to the hardware:rp2040 usb peripheral has a status register called SIE_STATUS. Bits 16 and 4 show the CONNECTED and SUSPENDED...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images