Raspberry Pi Pico C/C++ SDK

Our official C SDK can be used from the command line, or from popular integrated development environments like Visual Studio Code and CLion. To get started, download our C/C++ SDK and examples, and take a look at our getting started documentation. Or for a quick setup see the next section.

You can find documentation around the C/C++ SDK at:

SDK source code is open source and available in the pico-sdk Github repository.

To build applications with the C/C++ SDK for a board other than the Raspberry Pi Pico, pass -DPICO_BOARD=boardname to CMake, where boardname is the name of your board. For example:

  • To build an application for the Adafruit Feather RP2040, pass -DPICO_BOARD=adafruit_feather_rp2040.

  • To build an application for Pico W, pass -DPICO_BOARD=pico_w (in addition to -DWIFI_SSID="Your Network" -DWIFI_PASSWORD="Your Password", if you want to connect to a wireless network).

For more information, see the boards/ directory in the Raspberry Pi Pico SDK and the forums.