Loading...
Searching...
No Matches
Examples

Example sketches for Phyduino boards. Each page below explains what the sketch does, how to wire it and what it prints, followed by its source. The same sketches are in the Arduino IDE under File → Examples → Examples for Phyduino Pico once Phyduino Pico is selected: Phyduino for the analog, USB-PD, multicore, FreeRTOS and CMSIS-RTOS2 sketches, SPI and Wire for those libraries.

Example What it shows
Analog Millivolts Every analog pin in millivolts
Analog Averaging How averaging steadies a reading
Analog Differential The voltage between two pins
Analog Read Multiple All six analog pins at once, in the Serial Plotter
Analog Burst A fixed-rate burst of samples, to see a waveform
Analog Burst Background Continuous sampling in the background
USB-PD Power Asking a USB-PD charger for a higher voltage
Multicore Basics Two sketches at once, one on each core
Multicore FIFO Handing work to the second core through rp2040.fifo
FreeRTOS Tasks FreeRTOS tasks side by side, and the task list (needs FreeRTOS)
FreeRTOS Queue Passing measurements between tasks through a queue (needs FreeRTOS)
CMSIS-RTOS2 Threads Threads and a message queue with ARM's CMSIS-RTOS2 API (needs FreeRTOS + CMSIS-RTOS2)
SPI Loopback An SPI loopback test
I2C Scanner Finding the devices on the I2C bus
Peripheral Receiver The board as an I2C peripheral