# raspberrypi/pico-micropython-examples

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

Repository: https://github.com/raspberrypi/pico-micropython-examples
Canonical: https://ross.abutalabs.com/products/pico-micropython-examples
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: raspberry-pi, raspberry-pi-pico
Last push: 2025-03-18T13:58:38+00:00

## Health v2 (maintenance only)
Score: 38/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 12, release rhythm 35, longevity 100
- inputs: {"age_days": 2051, "days_push": 533, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1139, forks 235 (observed 2026-08-28T04:03:44.219262+00:00)

## What it is
A collection of MicroPython example programs accompanying the Raspberry Pi Pico Python SDK book, covering GPIO, PIO, and peripherals on the RP2040 microcontroller. It is maintained by Raspberry Pi as part of the official Pico documentation.

## Use cases
- learn micropython on raspberry pi pico
- example code for blinking an led on pico
- rp2040 pio state machine examples
- read sensors with micropython on pico
- getting started with raspberry pi pico python sdk
- neopixel ring example for rp2040

## When to choose
- you are learning MicroPython on the Raspberry Pi Pico or RP2040
- you want official, documented example code with wiring diagrams
- you need reference snippets for PIO, I2C, SPI, or other Pico peripherals

## When to avoid
- you need a production application or reusable library rather than examples
- you target other microcontrollers without an RP2040 MicroPython port
- you want C/C++ SDK examples instead of MicroPython

## Facets
- artifact type: learning-resource
- maturity: active
- function: embedded, sdk, developer-tools
- domain: embedded-systems, hardware, tutorials, programming-languages
- platform: embedded, iot, python
- tags: micropython, raspberry-pi-pico, rp2040, example-code, sample-code, gpio, pio

## Member repositories
- raspberrypi/pico-micropython-examples (main) score 38

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:44.219262+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:36:06.386936+00:00, confidence not recorded.
  - readme: https://github.com/raspberrypi/pico-micropython-examples (fetched 2026-08-28T04:03:44.219262+00:00, sha 6962a26ef65c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
