# uraimo/SwiftyGPIO

A Swift library for hardware projects on Linux/ARM boards with support for GPIOs/SPI/I2C/PWM/UART/1Wire.

Repository: https://github.com/uraimo/SwiftyGPIO
Canonical: https://ross.abutalabs.com/products/swiftygpio
Language: Swift
License: MIT
License Family: permissive
Topics: spi-interface, gpio, iot, swift, pwm, lcd-display, uart, serialport, i2c, 1-wire, led-strips, neopixel, spi, led, raspberry-pi
Last push: 2024-05-02T07:50:51+00:00

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

## Adoption (not part of the score)
Stars 1368, forks 141 (observed 2026-08-28T04:04:31.606925+00:00)

## What it is
SwiftyGPIO is a Swift library for hardware projects on Linux/ARM single-board computers like the Raspberry Pi, BeagleBone, and Orange Pi. It provides interfaces for GPIOs, SPI, I2C, PWM, UART serial, and 1-Wire buses to control sensors, displays, LEDs, and other external devices.

## Use cases
- blink an LED from Swift on a Raspberry Pi
- read sensor data over I2C with Swift
- drive servos or LEDs using PWM on ARM boards
- communicate with devices over UART serial
- control NeoPixel or RGB LED strips via SPI
- read 1-Wire temperature sensors on Linux SBCs

## When to choose
- you want to write embedded hardware code in Swift on Linux ARM boards
- you need GPIO/SPI/I2C/PWM/UART access on a Raspberry Pi or similar SBC
- you prefer Swift over Python for DIY hardware projects

## When to avoid
- you target microcontrollers like Arduino or ESP32 rather than Linux SBCs
- your project runs on macOS or Windows, since the library is Linux-only
- you need a mature ecosystem with extensive community support

## Facets
- artifact type: library
- maturity: maintenance
- function: sdk, developer-tools
- domain: iot, embedded-systems, hardware
- platform: embedded, iot
- tags: gpio, spi, i2c, pwm, uart, 1-wire, raspberry-pi, single-board-computers, sensors, led-strips, neopixel, hardware-interfaces, linux, swift

## Member repositories
- uraimo/SwiftyGPIO (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:31.606925+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-30T04:41:04.994189+00:00, confidence not recorded.
  - readme: https://github.com/uraimo/SwiftyGPIO (fetched 2026-08-28T04:04:31.606925+00:00, sha c6abdbbbfb46)
- Data as of 2026-08-30T08:39:29.467469+00:00.
