This is the official collection of example programs for the Raspberry Pi Pico, a small and inexpensive microcontroller board made by Raspberry Pi. A microcontroller is a tiny computer designed to control hardware directly, and the Pico is a popular choice for hobbyists and engineers working on electronics projects. This repository contains dozens of working code examples that demonstrate how to use nearly every feature the Pico offers. The examples are written in C and cover a wide range of the board's capabilities. There are simple starting points like blinking an LED or printing text over a USB connection, and much more specialized ones covering analog sensor readings, wireless networking, Bluetooth, audio output, touchscreens, motor control, and direct video signal generation. Some examples only work on the newer RP2350 chip (found in Pico 2 boards), while others work on both the original RP2040 and the newer chip. Each example is a self-contained program you can compile and load onto a Pico to see a specific feature working. The repository is structured so that each hardware area has its own folder: GPIO pins, clocks, flash memory, USB, DMA, and so on. There are also examples for integrating with FreeRTOS, which is a common operating system used on microcontrollers when you need to run multiple tasks at once. To use any of these examples, you need to set up the Pico SDK, which is the official development kit provided by Raspberry Pi. The README points to the official getting-started guide for that setup. The examples are maintained by Raspberry Pi themselves, so they serve as both learning material and a reference for what the hardware can do. The full README is longer than what was shown.
← raspberrypi on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.