Skip to content

mshr-h/pico-cpp-minimum-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published