# WiringPi/WiringPi

The arguably fastest GPIO Library for the Raspberry Pi

Repository: https://github.com/WiringPi/WiringPi
Canonical: https://ross.abutalabs.com/products/wiringpi
Language: C
License: LGPL-3.0
License Family: copyleft
Last push: 2026-08-23T15:59:30+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 45, longevity 100
- inputs: {"age_days": 5178, "days_push": 10, "days_rel": 206, "gap_med": 120.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3335, forks 1280 (observed 2026-08-28T04:07:56.736741+00:00)

## What it is
WiringPi is a fast C library for accessing GPIO pins on Raspberry Pi boards by directly manipulating hardware registers. It also ships with a gpio command-line utility for inspecting and controlling pins from the shell.

## Use cases
- control gpio pins on raspberry pi from c
- blink an led with a raspberry pi
- read button input with pull-up resistors on a pi
- generate pwm signals on raspberry pi gpio
- read all gpio pin states from the command line
- build a home automation controller on a raspberry pi

## When to choose
- you need low-latency, high-performance GPIO access on a Raspberry Pi in C or C++
- you want a mature, widely adopted GPIO library with a simple Arduino-like API
- you need a CLI tool to inspect and toggle pins without writing code

## When to avoid
- you are targeting non-Raspberry-Pi hardware
- you need GCLK functionality on the Raspberry Pi 5, which is not yet supported
- you prefer a higher-level language like Python (e.g., gpiozero or RPi.GPIO)

## Facets
- artifact type: library
- maturity: active
- function: embedded, developer-tools, cli
- domain: iot, embedded-systems, hardware
- platform: c, cpp, embedded, iot
- tags: gpio, raspberry-pi, hardware-access, single-board-computer, electronics, pwm, interrupts, linux

## Member repositories
- WiringPi/WiringPi (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.736741+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-29T18:41:07.492234+00:00, confidence not recorded.
  - readme: https://github.com/WiringPi/WiringPi (fetched 2026-08-28T04:07:56.736741+00:00, sha 415b1c229801)
- Data as of 2026-08-30T08:39:29.467469+00:00.
