# joan2937/pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).

Repository: https://github.com/joan2937/pigpio
Canonical: https://ross.abutalabs.com/products/pigpio
Language: C
License: Unlicense
License Family: permissive
Last push: 2024-06-24T15:18:29+00:00

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

## Adoption (not part of the score)
Stars 1595, forks 446 (observed 2026-08-28T04:05:09.132512+00:00)

## What it is
pigpio is a C library for the Raspberry Pi that provides fine-grained control of GPIO pins, including PWM, servo pulses, callbacks, and software-implemented serial, I2C, and SPI links. It also ships a daemon, a Python module, and command-line utilities exposing the same functionality over socket and pipe interfaces.

## Use cases
- control GPIO pins on a Raspberry Pi from C or Python
- generate PWM signals to dim LEDs or drive motors
- send servo control pulses to multiple servos simultaneously
- read button presses with microsecond-accurate timestamps via callbacks
- bit-bang software serial, I2C, or SPI on arbitrary GPIO pins
- build arbitrary waveforms with precise output timing
- monitor and log digital signals with piscope

## When to choose
- you need microsecond-level timing accuracy for GPIO on a Raspberry Pi
- you want PWM or servo control on many pins at once in software
- you need to control GPIO remotely over a socket or pipe interface
- you want software serial/I2C/SPI on any user GPIO

## When to avoid
- you are targeting boards other than the Raspberry Pi
- you need a maintained library with active development (the project is in maintenance mode)
- you only need simple, slow-speed GPIO toggling where lighter libraries suffice
- you are working with Raspberry Pi 5, which pigpio does not support

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, developer-tools
- domain: embedded-systems, hardware, iot
- platform: c, python, cli
- tags: gpio, raspberry-pi, pwm, servo-control, i2c, spi, daemon, waveform-generation, hardware-interfacing, linux

## Member repositories
- joan2937/pigpio (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.132512+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-30T03:54:07.228643+00:00, confidence not recorded.
  - readme: https://github.com/joan2937/pigpio (fetched 2026-08-28T04:05:09.132512+00:00, sha 62a09ea353a9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
