• Stars
    star
    434
  • Rank 100,274 (Top 2 %)
  • Language
    C
  • License
    BSD 3-Clause "New...
  • Created almost 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This repo is similar to pico-examples but utilizing additional libraries from pico-extras

Note that most of these examples are neither fleshed out nor well documented. They mostly serve the purpose of playing with/testing particular areas of functionality (mostly audio/video related)

Finally, you may wonder why many of these demos set the system clock to 48Mhz. The reason is that until we had physical chips, we were running at a fixed 48Mhz system clock using an FPGA. Most of these examples were written before the RP2040 design was final, so they were all developed with that fixed 48MHz system clock. As a result some of the examples do things in a way that you wouldn't necessarily need to if you had more clock speed available (which you do), but on the plus side, you have that much more time to do even more things!

Full Applications

Name Description
popcorn This is a movie player for 30fps 320x240 movies with 44100 stereo sound, read in a custom format from SD card... it can even play backwards :-) Sample movie file linked from here.
usb_sound_card A no frills but functional USB sound card... hooked up via our old (pre TinyUSB) USB device stack. Keeping it around as it works nicely!

Audio

Name Description
sine_wave_i2s A simple sine wave audio output using I2S.
sine_wave_pwm A simple sine wave audio output using PWM.
sine_wave_spdif A simple sine wave audio output using S/PDIF.

Scanout Video

In scanout video, every pixel is driven by the PIO every frame, and a framebuffer is not (necessarily) used (which is useful when you only have 264K of RAM).

For a fuller description of scanout video see here

Name Screenshot Description
demo1 So named because it was the first demo program written that used video.. it is a bit dated now and hails from a time where there was much less RAM on the RP2040
flash_stream Streams video data out of flash fast enough to drive 640x480x60fps bitmap display
hscroll_dma_tiles A horizontal scrolling test app which uses a second video plane (PIO) to overlay sprites
mandelbrot A mandelbrot generator using a 320x240x16 framebuffer
mario_tiles Confusingly named as a reference to Super Mario Kart's tiled psuedo-3D rendering. This is similar to hscroll_dma_tiles except the whole tiled scrolling area is now rotated and zoomed.
scanvideo_minimal A very basic video output generator which generates a test pattern
render A very dated rendering library used by demo1 - avoid!
sprite A small sprite library used by sprite_demo
sprite_demo Some bouncing Eben heads
test_pattern Display color bars
textmode Shows off chained DMA to generate scanlines out of glyph fragments via DMA/PIO

The above are intended to be used with the VGA demo board as described in Hardware Design with RP2040 however it is possible to wire your own VGA output according to the following schematic:

Sleep

Examples of using low power mode; these use pico_sleep from pico_extras which is not yet stable.

Name Description
hello_dormant Demonstrates dormant mode
hello_sleep Demonstrates low power sleep and waking from RTC

Stdio

Examples of adding additional stdio support. Note the interface for stdio drivers is not yet considered stable even though it is in the Pico SDK

Name Description
stdio_pio Demonstrates adding a custom STDIO driver using a PIO UART

More Repositories

1

linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
C
11,056
star
2

documentation

The official documentation for Raspberry Pi computers and microcontrollers
Python
5,178
star
3

firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5,133
star
4

pico-sdk

C
3,536
star
5

pico-examples

C
2,763
star
6

noobs

NOOBS (New Out Of Box Software) - An easy Operating System install manager for the Raspberry Pi
Makefile
2,210
star
7

userland

Source code for ARM side libraries for interfacing to Raspberry Pi GPU.
C
2,040
star
8

tools

C
1,876
star
9

rpi-imager

The home of Raspberry Pi Imager, a user-friendly tool for creating bootable media for Raspberry Pi devices.
C
1,668
star
10

rpi-eeprom

Installation scripts and binaries for the Raspberry Pi 4 and Raspberry Pi 5 bootloader EEPROMs
Shell
1,257
star
11

pico-micropython-examples

Examples to accompany the "Raspberry Pi Pico Python SDK" book.
Python
948
star
12

usbboot

Raspberry Pi USB booting code, moved from tools repository
C
897
star
13

picamera2

New libcamera based python library
Python
852
star
14

debugprobe

C
730
star
15

hats

C
658
star
16

pico-tflmicro

Pico TensorFlow Lite Port
C++
619
star
17

picotool

C++
549
star
18

Raspberry-Pi-OS-64bit

Repository for containing issues on the 64 bit operating system (as distinct from the 32 bit one)
466
star
19

pico-extras

C
459
star
20

quake3

C
390
star
21

rpicam-apps

C++
383
star
22

maynard

Desktop environment for Wayland
C
336
star
23

piserver

Raspberry Pi Server wizard to serve Raspbian to network booting Pis
C++
311
star
24

pico-project-generator

Tool to automatically generate a Pico C SDK Project
Python
294
star
25

pico-bootrom-rp2040

C
271
star
26

raspiraw

Example app directly receiving raw data from CSI2 sensors
C
257
star
27

pico-setup-windows

PowerShell
252
star
28

libcamera

C++
211
star
29

utils

A collection of scripts and simple applications
C
148
star
30

openocd

C
141
star
31

windows-drivers

Windows IOT drivers
C
120
star
32

pico-bootrom-rp2350

C
120
star
33

cmprovision

Provisioning system for CM4 products
PHP
97
star
34

pico-setup

Shell
92
star
35

scratch

Scratch releases
79
star
36

usbbootgui

GUI for booting a Raspberry Pi device like Pi Zero or compute module as a device
M4
77
star
37

rp2350_hacking_challenge

CMake
70
star
38

tinyusb

C
67
star
39

rpi-sense

Sense HAT firmware and driver
Assembly
66
star
40

usb-pid

Raspberry Pi Pico PID allocations
63
star
41

gpioexpander

Buildroot based ethernet gadget which gives a host access to PIGPIO to control GPIO pins
Makefile
62
star
42

pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
TypeScript
62
star
43

target_fs

Shell
39
star
44

weston

The Weston Wayland Compositor
C
37
star
45

scriptexecutor

Simple buildroot based system for executing a remote script for manufacture programming
Shell
36
star
46

pico-host-sdl

C
27
star
47

pico-feedback

24
star
48

raspberrypi.github.io

Raspberry Pi GitHub organisations
HTML
20
star
49

pytrack

Python
17
star
50

Pi-Codec

Tools for the IQaudIO Pi-Codec / CodecZero sound cards
16
star
51

skygate

Python
15
star
52

style-guide

14
star
53

bookworm-feedback

13
star
54

CMSIS-RP2xxx-DFP

C
13
star
55

armulet

C++
8
star
56

pylibcamera

Meson
8
star
57

libpisp

C++
7
star
58

pico-sdk-tools

Shell
5
star
59

rpi-sb-provisioner

A minimal-input automatic secure boot provisioning system for Raspberry Pi devices.
Shell
5
star
60

pykms

Meson
2
star
61

FreeRTOS-Kernel

C
1
star
62

sweet-b

C
1
star