# stianeikeland/go-rpio

:electric_plug: Raspberry Pi GPIO library for go-lang

Repository: https://github.com/stianeikeland/go-rpio
Canonical: https://ross.abutalabs.com/products/go-rpio
Language: Go
License: MIT
License Family: permissive
Last push: 2023-09-30T11:50:31+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": 4782, "days_push": 1068, "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 2287, forks 224 (observed 2026-08-28T04:06:34.730419+00:00)

## What it is
A pure-Go library for accessing GPIO pins on Raspberry Pi boards without external C dependencies like WiringPI or bcm2835. It supports pin input/output, pull-up/down, PWM, clock modes, edge detection, and SPI communication via /dev/gpiomem.

## Use cases
- control GPIO pins on a Raspberry Pi from Go
- blink an LED connected to a Pi header pin
- read button or sensor state via GPIO input
- communicate with SPI devices from a Raspberry Pi
- generate PWM signals on a Pi pin
- set pull-up or pull-down resistors on GPIO pins

## When to choose
- you want GPIO access in Go with no external C library dependencies
- you're targeting Raspberry Pi hardware including Pi 4
- you need SPI, PWM, or edge detection alongside basic GPIO

## When to avoid
- you need GPIO on non-Raspberry-Pi single-board computers
- you're on a platform without /dev/gpiomem or /dev/mem access
- you need a maintained library with active development

## Facets
- artifact type: library
- maturity: maintenance
- function: embedded, sdk
- domain: iot, embedded-systems, hardware
- platform: go, embedded
- tags: gpio, raspberry-pi, bcm2835, spi, pwm, hardware-interfacing, no-cgo, linux

## Member repositories
- stianeikeland/go-rpio (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:34.730419+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-30T02:40:52.682957+00:00, confidence not recorded.
  - readme: https://github.com/stianeikeland/go-rpio (fetched 2026-08-28T04:06:34.730419+00:00, sha a5c3db854384)
- Data as of 2026-08-30T08:39:29.467469+00:00.
