This repository contains projects written for the RPi Pico using the Pico C/C++ SDK.
.devcontainer/
: Folder with dev container source files (docker files)pico-examples/
: Folder with pico-sdk examplespresentations/
: Folder with presentations used in lecturesstudent-packages/
: Folder with base materials for assigmentsteacher-packages/
: Folder with finished assigments
- Docker
- Git
- Visual Studio Code
- Dev Containers extension (optional for building through docker)
- CMake Tools extension
- C/C++ extension
-
Clone this repository:
git clone https://github.com/sps-prosek/Px-PRG-4EA.git
-
Open the repository folder in VS code.
-
(only for docker users) Reopen the repository folder inside the dev container. VS code will ask you or you can open command pallet (ctrl + shift + P) and find command
Dev Containers: Reopen in container
.
-
After opening this folder in VS Code (Pico VS Code for school computers) choose the CMakeLists.txt file located in the root of this repository when asked so.
-
Build the project with build button on the bottom left corner of the VS Code
-
Open terminal in this folder.
-
Create a build directory and navigate into it:
mkdir build cd build
-
Configure the project with CMake:
cmake ..
-
Build the project:
cmake --build .
- Connect the RP2040 board to your computer.
- Press and hold the BOOTSEL button while plugging the board into USB.
- Copy the generated
.uf2
file from thebuild
directory to the RP2040 USB mass storage device.