The USB-serial console is used by:
- MicroPython REPL and Python scripts
- C / C++ programs using the Pico SDK and TinyUSB library. Example: hello_usb
Operating systems access USB-serial console distinctly as below. If using MicroPython, the REPL is the default program that runs on the Pico. If the ">>>" prompt isn't seen after connecting, verify that MicroPython is installed on the Pico.
>>> print("Hello")
Hello
Once connected to the console, you can copy-paste in scripts, or use rshell to edit and upload autorun MicroPython scripts.
Look in Windows Device Manager under "Ports". There should be "COM*" device of a specific number e.g. COM3.
Use PuTTY to connect at 115200 baud serial. Under "Serial line" in PuTTY enter "COM3" or whatever device name is seen in Windows Device Manager. This device name may change if you plug the Pico into a different USB port.
Depending on the Pico program used, the USB-serial device will show up in either of these mount points:
TinyUSB:
ls /dev/cu.usbserial*
or MicroPython REPL:
ls /dev/tty.usbmodem*
Connect using screen like:
screen /dev/tty.usbmodem* 115200
Connect using screen like:
screen /dev/ttyACM* 115200