How to get into a MicroPython REPL using USB in 10 seconds

On Linux, use picocom:

example.sh
picocom /dev/ttyUSB0 -b115200

and press enter to get a REPL (or press the RESET button on the board if that does not work).

You should now see the

example.py
>>>

prompt.

Don’t have picocom installed?

example.sh
sudo apt -y install picocom

Got permission denied errors?

example.sh
sudo usermod -a -G dialout $USER

then logout and log back in or reboot!


Check out similar posts by category: MicroPython