vsergeev/c-periphery
A C library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux. observed · 2026-08-28
Health v2 · maintenance only
50/100
- Activity 50
- Release rhythm 22
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 246
- age_days: 4494
- days_rel: 304
- days_push: 304
- n_releases_24m: 2
Adoption not part of the score
1061 stars · 304 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A small MIT-licensed C library providing userspace access to Linux peripheral I/O interfaces including GPIO, LED, PWM, SPI, I2C, MMIO, and Serial. It consolidates the native Linux APIs into a simple, dependency-free static library for embedded Linux platforms like Raspberry Pi and BeagleBone.
Use cases
- read and write GPIO pins from userspace C code on a Raspberry Pi
- communicate with I2C sensors in an embedded Linux application
- drive SPI devices from C without writing raw ioctl code
- blink or control LEDs via the Linux LED subsystem
- generate PWM signals for motors or servos
- open and read from serial ports in a C program
- memory-mapped I/O access to hardware registers on BeagleBone
When to choose
- you need C access to GPIO, SPI, I2C, PWM, serial, LED, or MMIO on embedded Linux
- you want a dependency-free static library with a simple re-entrant API
- you are targeting Raspberry Pi, BeagleBone, or similar single-board computers
- you want a maintained wrapper over the native Linux peripheral APIs
When to avoid
- you are not on Linux
- you need Python, Lua, Java, or Dart bindings (use the periphery ports instead)
- you need a higher-level robotics framework with device drivers and abstractions
- you need interrupt-driven or real-time guarantees beyond what userspace Linux provides
Facets
library · maturity stable
embedded file-system developer-tools embedded-systems hardware iot operating-systems c embedded iot gpio spi i2c pwm serial mmio led peripheral-io raspberry-pi beaglebone userspace-hardware-access linux
1 source
- readme: https://github.com/vsergeev/c-periphery · fetched 2026-08-28 · 74e537fd146b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| vsergeev/c-periphery | main | 50 |
For agents
markdown · JSON · MCP: product_card(name="vsergeev/c-periphery")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem