A beginner-friendly library for using common electronics components with the Raspberry Pi Pico.
from picozero import LED, Button led = LED(1) button = Button(2) button.when_pressed = led.on button.when_released = led.off
Beta. There will be bugs and issues. API changes are likely. More devices will be added over time.
Documentation is available at picozero.readthedocs.io :
The code and project is at github.com/RaspberryPiFoundation/picozero.
The latest distribution is available at pypi.org/project/picozero/.
picozero is inspired by gpiozero (and reuses some of its underlying structure), but is, by design, lighter weight and aligned with the Raspberry Pi Pico. Thank you to everyone who has contributed to the gpiozero project.
Table of Contents
- Getting Started
- picozero API
- Change log