Microcontrollers and displays
Program a board, and show things on screens.
Circuitpal can run the code you write for a microcontroller, so you can build a circuit and its program together.
Raspberry Pi Pico (Python)#
Add a Pico from the Microcontrollers group. Open its editor, write Python, and press Run: your program drives the pins, and LEDs, buttons and potentiometers wired to it respond. The examples Microcontroller: Blink, Button → LED, Fade (PWM) and Pot → LED + Serial are good starting points.
Displays#
The Displays group has a 16×2 LCD, an OLED and a TFT screen, plus seven-segment displays, LED bars and LED matrices. Wire them to a microcontroller and print to them from your program. See the examples Microcontroller + 16×2 LCD, + OLED and + TFT screen.
Arduino and ESP32#
The Arduino board runs an Arduino-style program (pinMode, digitalWrite, analogRead, delay, Serial) on an emulated AVR chip, and the ESP32 board has its own pins, 3.3 V logic and a 12-bit ADC. Click Open code editor on the board, write the program and press Run. Examples: ESP32: Blink, ESP32: Pot → PWM LED + Serial and ESP32 + OLED.
Serial output#
Text your program prints appears in the editor's serial area, which is handy for checking what a sensor reads.
Part details for each board are in the Parts reference.