Skip to main content

Working with C/C++

This chapter contains the following sections. Please read as needed:

Setting Up the Development Environment

Please refer to the Install and Configure Pico C/C++ Development Environment Tutorial to download and install the Pico VS Code.

Example

The C/C++ examples are located in the examples\C directory of the example package.

ExampleBasic Program DescriptionDependency Library
01_WS2812Onboard RGB LED example-

01_WS2812

Example Description

  • Uses GPIO16 to drive a WS2812B RGB LED via PIO, cycling through colors.

Hardware Connection

  • Connect the board to the computer using a USB cable.

Operation Result

  • After flashing, the WS2812B RGB LED continuously fades through red, green, and blue.