Clone the repo
git clone https://github.com/CobbCoding1/pico-epaper
cd pico-epaper
Comprehensive guide: https://www.waveshare.com/wiki/Pico-Get-Start-Windows
Arm GNU Toolchain CMake Visual Studio 2022 Python 3.10 Git
When installing Visual Studio, make sure to install the build tools like the image provided here:
git clone -b master https://github.com/raspberrypi/pico-sdk.git
cd pico-sdk
git submodule update --init
cd ..
git clone -b master https://github.com/raspberrypi/pico-examples.git
From Visual Studio, press Tools -> Command Line -> Developer Powershell Get the address to the pico-sdk you installed, and type this command
setx PICO_SDK_PATH <path_to_sdk>
Navigate to pico-examples and execute the following commands
mkdir build
cd build
cmake -G "NMake Makefiles" ..
nmake
Now you can update the firmware on the device, according to the instructions from this site
Execute the following commands to setup pico-sdk
cd ~
wget https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh
chmod +x pico_setup.sh
./pico_setup.sh
sudo reboot
Now install the required libraries
sudo apt update
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential -y
sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev -y
Install Pico-lib and Openocd
cd ~
sudo apt-get install p7zip-full -y
wget https://github.com/EngineerWill/Pico-lib/releases/download/v1.0/Pico-lib.7z
7z x ./Pico-lib.7z
cd ~/pico/openocd/
./bootstrap
./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio
make -j4
sudo make install
Now, build the program. Naviate to the project directory, and execute the following commands.
mkdir build
cd build
cmake ..
make -j4