Reputation: 11
I need the equivalent for the pico as Serial.end()
is for an arduino, any ideas?
Project info:
My terminal is waiting for more data until I unplug the cable. When I plug it back in I can go over the process again.
On an arduino I can programmatically call Serial.end()
to stop the transfer (closing the terminal on my pc) and reconnect it with Serial.begin()
in a loop and get the next image by calling stty again without all the unplugging.
I tried calling stdio_usb_init()
again, looked in stdio.h
for appropriate functions but found none?
I can force to stop listening to the port as well, then detect this on the pico and start over without unplugging the usb cable but this causes my port to hang after a while. ('never' happens with Serial.end()
on an arduino)
Upvotes: 1
Views: 197