sample
Directory actions
More options
Directory actions
More options
sample
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
SAMPLES 01-gpiosimple [5] Simple GPIO usage, blinking Act LED 02-screenpixel [5] Setting pixels on screen 03-screentext [5] Writing text to screen, debug_hexdump() and assert usage 04-timer [5] Interrupt driven timer, exception handler demonstration 05-usbsimple [5] Displaying USB device descriptor of root hub 06-ethernet [5] Receiving broadcasts from Ethernet 07-usbstorage [5] Displaying partition table from master boot record (MBR) 08-usbkeyboard [PnP,5] Echoing typed characters to screen or SPI/I2C display, or keyboard raw mode 09-softserial [5] GPIO interrupt demonstration, serial interface via non-UART GPIO-pins 10-usbmouse [PnP] Little painting program with USB mouse support 11-gpioclock [5] Using GPIO clock 0 to generate a square wave signal and sampling this signal to display it 12-pwmsound [5] Using PWM device and DMA controller to playback a short sound sample 13-pwmoutput [5] Using PWM device to continously change the brightness of a connected LED 14-usbprinter [5] Printing some text lines on an USB printer (GDI printers do not work) 15-files [5] Root directory listing of a connected USB drive, writing and reading the file "circle.txt" 16-i2cping Transfering data blocks between two Raspberry Pis connected via I2C 17-fractal [5] Displaying a fractal image from a Mandelbrot set (may be build for single- or multi-core) 18-ntptime [PnP,5] Setting the system time from an Internet time (NTP) server, reducing boot time 19-tasks [5] Demonstrating the cooperative non-preemptive scheduler 20-tcpsimple [5] Simple TCP echo server 21-webserver [5] Simple HTTP webserver which controls the Act LED 23-spisimple [5] Transfers some data bytes to/from a SPI slave device. Dumps the received bytes. 24-hwrandom [5] Demonstrating the hardware random number generator. 25-spidma [5] Transfers some data bytes to/from a SPI slave device using DMA. 26-cpustress [5] Calculates fractal images to stress the CPU. Displays a SoC temperature chart. 27-usbgamepad [PnP,5] Displaying information about an attached USB gamepad and its current state. 28-touchscreen [5] Displaying events from the official Raspberry Pi or USB touch screens. 29-miniorgan [PnP,5] Mini organ instrument using PWM, HDMI, I2S or USB sound, (USB or serial) MIDI or USB keyboard. 30-gpiofiq Demonstrating FIQ-driven fast GPIO event capture and a tracing class. 31-webclient Fetching a RPi hardware revision list from a HTTP webserver and parsing it. 32-i2cshell [PnP,5] Command line tool for interactive communication with I2C devices. 33-syslog [5] Demonstrating how to send log messages to a syslog server using UDP. 34-sounddevices [5] Integrating multiple sound devices in one application 35-mqttclient [5] Demonstrating the MQTT client 36-softpwm Using the class CUserTimer to implement software PWM 37-showgamepad [PnP,5] Shows a stylised gamepad on screen and the state of an attached USB gamepad. 38-bootloader HTTP- and TFTP-based bootloader with Web front-end 39-umsdplugging [PnP,5] Plug in and remove USB flash drives, list directory 40-irqlatency [PnP] Displays the maximum measured IRQ latency 41-screenanimations [5] 2D graphical shapes demo on screen without flickering or on SPI/I2C display 42-soundinput [5] I2S or USB to PWM sound data converter and digital sound recorder 43-multiwindow [5] Demonstrating multiple non-overlapping windows on a screen (Multi-core only) 44-kasan [5] Address Sanitizer (KASan) demonstration Samples marked with [PnP] are enabled for USB plug-and-play. Samples marked with [5] are working on the Raspberry Pi 5.