# google/periph

Older version of periph, see new version at https://github.com/periph

Repository: https://github.com/google/periph
Canonical: https://ross.abutalabs.com/products/periph
Homepage: https://periph.io
Language: Go
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2022-05-29T14:36:30+00:00

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

## Adoption (not part of the score)
Stars 1730, forks 156 (observed 2026-08-28T04:05:28.591978+00:00)

## What it is
periph is a Go library for peripherals I/O, providing pure-Go (no cgo) drivers and interfaces for GPIO, I²C, SPI, and 1-wire hardware on boards like Raspberry Pi, BeagleBone, and Jetson Nano. This google/periph repository is the archived original home; development moved to the github.com/periph organization, with the last usable version pinned at v3.6.8.

## Use cases
- control GPIO pins on a Raspberry Pi from Go
- read sensors like BMP280 or DS18B20 over I2C or 1-wire
- blink an LED or read a button without polling
- drive SPI displays like SSD1306 OLED from Go
- enumerate and discover available hardware pins at runtime
- interface with FTDI FT232x USB devices in Go

## When to choose
- you need pure-Go peripheral I/O with no cgo or external dependencies
- you are pinned to the v3.6.8 API and cannot migrate
- you want SemVer-guaranteed stable interfaces for GPIO/I2C/SPI on Linux SBCs

## When to avoid
- starting a new project - use the actively maintained repositories at github.com/periph instead
- you need support for newer boards or devices added after 2022
- you need non-Linux production-grade hardware support beyond hobbyist use

## Facets
- artifact type: library
- maturity: abandoned
- function: embedded, iot, sdk, developer-tools
- domain: embedded-systems, iot, hardware, cross-platform
- platform: windows, go, embedded, iot
- tags: gpio, i2c, spi, 1-wire, peripherals, hardware-io, sensors, single-board-computers, archived-repo, superseded, linux, macos

## Member repositories
- google/periph (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.591978+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:31:45.064663+00:00, confidence not recorded.
  - readme: https://github.com/google/periph (fetched 2026-08-28T04:05:28.591978+00:00, sha 07e6ed44bb13)
  - homepage: https://periph.io (fetched 2026-08-29T11:08:34.668052+00:00, sha 5138f7a952dc)
  - site_page: https://periph.io/device/gpio (fetched 2026-08-29T11:08:34.677263+00:00, sha d6bd9dbb54a0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
