Add days 10 to 12
Add days 1 to 9
Add mpremote module
BOOTSEL
button and plug your Pico into the USB port of your computer.BOOTSEL
button after your Pico is connected.RPI-RP2
.RPI-RP2
volume./dev/ttyACM0
.On Arch Linux you need to be in uucp
group:
udisksctl mount -b /dev/sda1
# download and copy UF2 file
udisksctl umount -b /dev/sda1
doas usermod -aG uucp nora
Install mpremote
module.
Access REPL on the device:
mpremote
mpremote a0
mpremote connect /dev/ttyACM0 repl
Run a command on the device:
mpremote eval 1+1
mpremote exec "print(1+1)"
Run a script on the device:
mpremote run app.py
Run a filesystem operation on the device:
# ls, cat, touch, cp, rm, mkdir, rmdir
mpremote cp main.py :
mpremote ls
Show memory usage:
mpremote df
mpremote exec "import micropython; micropython.mem_info()"
Mount the local directory on the device:
mpremote mount .
mpremote umount
Reset the device:
mpremote soft-reset
mpremote reset
Install packages from micropython-lib:
mpremote mip install ssd1306
Download pyboard.py and install pyserial
module.
Run a command on the device:
python pyboard.py --device /dev/ttyACM0 -c 'print(1+1)'
Run a script on the device:
python pyboard.py --device /dev/ttyACM0 app.py
Run a filesystem operation on the device:
# ls, cat, touch, cp, rm, mkdir, rmdir
python pyboard.py --device /dev/ttyACM0 -f cp main.py :
Reset the device:
python pyboard.py --device /dev/ttyACM0 -c 'machine.reset()' --no-follow
Install the plugin and create a new project with a virtual environment.