chenbrian
about   posts   tags   github  

interfacing with a pi pico on linux

Needed to use a Pi Pico for one of my courses (which mandated circuitpython … for reasons unknown) and noticed that Adafruit’s documentation for using CircuitPython with something that wasn’t Mu Editor was not really up to par.

  1. Install CircuitPython by copying .uf2 file into the Pi Pico, which can be done by just plugging it into your computer
  2. python3 -m pip install circuitpython-stubs to get completions with your LSP of choice
  3. Connect to serial port to view prints and logging info
  • find the appropriate port with ls /dev/ttyACM*
  • connect using GNU screen or whatever you like to use
    • e.x. screen /dev/ttyACM0 115200
    • If you get a permissions error, add sudo or add yourself to the appropriate group