Skip to content

3 Installation

Umut Sevdi edited this page Jan 28, 2024 · 1 revision

From The Build

The project provides the latest builds at the releases section.

  • Install the UF2 file.
  • Plug the Raspberry Pi Pico.
mv build/src/wear-pico.uf2 /path/to/pico-driver

Compilation With Docker

  • Clone this repository. And run submodule update. This will install the Pico SDK. If the pico-SDK is installed, you can update the docker-compose file accordingly.
git clone https://github.com/umutsevdi/wear-pico.git
cd pico-sdk
git submodule  update --init
cd ..
  • Install the Waveshare Touchscreen driver for Raspberry Pi Pico.
wget https://files.waveshare.com/upload/3/3e/1.28inch_Touch_LCD_Pico.zip
unzip 1.28inch_Touch_LCD_Pico.zip
mv 1.28inch_Touch_LCD_Pico/c/ src/waveshare
rm 1.28inch_Touch_LCD_Pico* -rf
  • Start the compiling container.
docker-compose up -d && docker exec -it picobox bash
  • Compile the program. In the container
mkdir -p /app/build
cd /app/build
cmake ..
make
exit
mv build/src/wear-pico.uf2 /path/to/pico-driver

Source Compilation

  • Clone this repository. And run submodule update. This will install the Pico SDK. If the pico-SDK is installed, you can update the docker-compose file accordingly.
git clone https://github.com/umutsevdi/wear-pico.git
cd pico-sdk
git submodule  update --init
cd ..
sudo apt update && apt-get install -y \
    cmake \
    gcc-arm-none-eabi \
    libnewlib-arm-none-eabi \
    libstdc++-arm-none-eabi-newlib \
    vim \
    python3 \
    g++
export PICO_SDK_PATH=/path/to/pico-sdk/
  • Install the Waveshare Touchscreen driver for Raspberry Pi Pico.
wget https://files.waveshare.com/upload/3/3e/1.28inch_Touch_LCD_Pico.zip
unzip 1.28inch_Touch_LCD_Pico.zip
mv 1.28inch_Touch_LCD_Pico/c/ src/waveshare
rm 1.28inch_Touch_LCD_Pico* -rf
  • Start the compiling container.
docker-compose up -d && docker exec -it picobox bash
  • Compile the program. In the container
mkdir -p /app/build
cd /app/build
cmake ..
make
exit
mv build/src/wear-pico.uf2 /path/to/pico-driver