Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 1.2 KB

README.md

File metadata and controls

51 lines (34 loc) · 1.2 KB

Raspberry Pi Pico C++ example project

This is a very basic example for Raspberry Pi Pico.

Getting Started (Example for Ubuntu 20.04)

Install CMake and cross compiler.

sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi

Clone the repository.

git clone https://github.com/mshr-h/pico-cpp-minimum-example
cd pico-cpp-minimum-example

Create build directory.

mkdir build
cd build

Configure and build it.

IfPICO_SDK_PATH environment variable isn't set, cmake will automatically download pico-sdk to the build directory.

cmake ..
make -j`nproc`

Connect the Pico to the Host PC with pressing the BOOTSEL button.

Copy the binary to Raspberry Pi Pico.

cp blink.uf2 /path/to/pico_storage

The LED on the Pico will start blinking.

Additional resources