How to run a MicroPython script from a file on the Raspberry Pi Pico W from the command line?
ID: how-to-run-a-micropython-script-from-a-file-on-the-raspberry-pi-pico-w-from-the-command-line
How to run a MicroPython script from a file on the Raspberry Pi Pico W from the command line? by
Ciro Santilli 35 Updated 2025-03-25 +Created 1970-01-01
The first/only way Ciro could find was with ampy: stackoverflow.com/questions/74150782/how-to-run-a-micropython-host-script-file-on-the-raspbery-pi-pico-from-the-host/74150783#74150783 That just worked and it worked perfectly!
python3 -m pip install --user adafruit-ampy
ampy --port /dev/ttyACM0 run blink.py
TODO: possible with rshell?
New to topics? Read the docs here!