Skip to content

yuuwe-n/pico_pomdoro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pico-pomodoro

simple pomodoro timer using a raspberry pi pico microcontroller

docs

pico

development

development notes are for OpenBSD based machines

firmware

python sdk

Find Raspberry Pi Pico inside dmesg to see if it is connected

dmesg | grep uhub

Install firmware

  1. disconnect usb connection with pico
  2. see drives using sysctl.hwdisknames
  3. connect pico
  4. see drives using sysctl.hwdisknames, if you see a new drive conncted, that is the pico probably
  5. mount/add firmware
mount /dev/<disk> /mnt/usb
doas wget https://micropython.org/download/rp2-pico/rp2-pico-latest.uf2
  1. disconnect/reconnect usb

  2. connect via minicom pkg_add minicom

minicom -D /dev/ttyU0

ide

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>

picotool

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

pico getting started

pico-sdk

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>

build

pkg_add cmake

git clone https://github.com/raspberrypi/picotool.git
cd picotool
mkdir build
cd build
cmake ..
make

Releases

No releases published

Packages

No packages published

Languages