whatisgithub

What is pico-examples?

raspberrypi/pico-examples — explained in plain English

Analysis updated 2026-06-26

3,794CAudience · developerComplexity · 3/5Setup · moderate

In one sentence

The official collection of example C programs for the Raspberry Pi Pico microcontroller, covering LED blinking, wireless networking, Bluetooth, audio, motor control, and dozens of other features.

Mindmap

mindmap
  root((pico-examples))
    What it covers
      GPIO and LED
      Wireless and Bluetooth
      Audio and video
      Motor and sensors
    Hardware
      RP2040 chip
      RP2350 chip
      Pico W WiFi board
    Tech used
      C language
      CMake build
      Pico SDK
      FreeRTOS
    Audience
      Hobbyists
      Embedded engineers
    Setup
      SDK install required
      Cross-compiler needed
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Get a Raspberry Pi Pico blinking an LED using a ready-made example to verify your SDK and build setup

USE CASE 2

Add WiFi or Bluetooth to a Pico project by adapting one of the included wireless networking examples

USE CASE 3

Control a motor, read an analog sensor, or generate audio output using a self-contained example as a starting template

USE CASE 4

Learn how to use DMA, USB, or PWM on the Pico RP2040 or RP2350 chip by compiling and running the provided examples

What is it built with?

CCMakePico SDKFreeRTOS

How does it compare?

raspberrypi/pico-examplesopenkinect/libfreenectcontiki-os/contiki
Stars3,7943,7943,795
LanguageCCC
Setup difficultymoderatemoderatehard
Complexity3/53/55/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires installing the Pico SDK along with CMake and the arm-none-eabi-gcc cross-compiler before any example can be built.

So what is it?

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.

Copy-paste prompts

Prompt 1
I have a Raspberry Pi Pico and want to read an analog sensor. Which pico-examples folder should I start with, and how do I compile and flash it?
Prompt 2
Using pico-examples, show me how to configure PWM on the Raspberry Pi Pico to control LED brightness from a C program.
Prompt 3
I want to add WiFi to my Pico W project. Which example in pico-examples demonstrates connecting to a network and sending an HTTP request?
Prompt 4
How do I install the Pico SDK on Ubuntu so I can build and flash an example from the pico-examples repository to a physical Pico board?

Frequently asked questions

What is pico-examples?

The official collection of example C programs for the Raspberry Pi Pico microcontroller, covering LED blinking, wireless networking, Bluetooth, audio, motor control, and dozens of other features.

What language is pico-examples written in?

Mainly C. The stack also includes C, CMake, Pico SDK.

How hard is pico-examples to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is pico-examples for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.