Skip to main content
100%

Raspberry Pi Pico C/C++ SDK Example CMake File

✓ Published0🌍 Public
IIoTeacher
Last edited Aug 4, 2023
Created on Oct 29, 2023

This example shows a minimal CMake build configuration for compiling and linking a Raspberry Pi Pico C/C++ SDK project, specifically an executable named `blink`. The file sets required C and C++ standards, initializes the SDK with `pico_sdk_init()`, and defines the executable with `add_executable(blink blink.c)`. It links the `pico_stdlib` library to provide core Pico APIs, and includes `pico_add_extra_outputs` to generate additional build artifacts. Optional commented lines demonstrate enabling USB stdio via `pico_enable_stdio_usb` and adding wireless support with `pico_cyw43_arch_none`.

AI-generated description

Similar vizzes