vsergeev/c-periphery
Some data may be outdated — see provenance labels.
A C library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux. observed · 2026-10-02
Health v2 · maintenance only
44/100
- Activity 42
- Release rhythm 15
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 246
- age_days: 4542
- days_rel: 352
- days_push: 352
- n_releases_24m: 2
Adoption not part of the score
1068 stars · 308 forks observed · 2026-10-02
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-10-02 · 74e537fd146b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| vsergeev/c-periphery | main | 44 |
For agents
markdown · JSON · MCP: product_card(name="vsergeev/c-periphery")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem