simple pomodoro timer using a raspberry pi pico microcontroller
development notes are for OpenBSD based machines
Find Raspberry Pi Pico inside dmesg to see if it is connected
dmesg | grep uhub
Install firmware
- disconnect usb connection with pico
- see drives using
sysctl.hwdisknames
- connect pico
- see drives using
sysctl.hwdisknames
, if you see a new drive conncted, that is the pico probably - mount/add firmware
mount /dev/<disk> /mnt/usb
doas wget https://micropython.org/download/rp2-pico/rp2-pico-latest.uf2
-
disconnect/reconnect usb
-
connect via minicom
pkg_add minicom
minicom -D /dev/ttyU0
inside pythonsdk, it recommends using either Thonny or rshell. Since I was pretty sure Thonny was gonna take a lot of work, I tried rshell; however it seemed rshell was gonna to work rshell issue. I was looking around for alternatives and landed on ampy.
pip install adafruit-ampy
ampy --port /dev/ttyU0 <command>
not needed but maybs useful later (for building with C/C++
im not sure if I already installed the build tools so I am not sure of the dependencies
git clone -b master https://github.com/raspberrypi/pico-sdk.git
cd pico-sdk
git submodule update --init
you can place this export line in your .profile
export PICO_SDK_PATH=<path to pico sdk>
pkg_add cmake
git clone https://github.com/raspberrypi/picotool.git
cd picotool
mkdir build
cd build
cmake ..
make