Categories: None [Edit]

rgpio

https://rubygems.org/gems/rgpio
https://github.com/lumbermill/rgpio
Control a Raspberry Pi's hardware from Ruby. GPIO goes through libgpiod v2 — the Linux GPIO character device (uAPI v2) — rather than the deprecated sysfs interface. PWM is either the hardware peripheral through sysfs or timed in Ruby on any line; I2C and SPI are ioctl calls on /dev/i2c-N and /dev/spidev, needing no libgpiod at all. On top sits a gpiozero-style device layer: LED, Button, Motor, PWMLED, RGBLED, Servo, RotaryEncoder, and drivers for the ADT7410 temperature sensor, ST7032 character LCD, MCP3208 ADC, ILI9341 colour TFT and XPT2046 touch panel. Bound through the stdlib `fiddle`, which is built with the interpreter and so matches any Pi's architecture, unlike the precompiled `ffi` gem.

Total

Ranking: 187,492 of 198,451
Downloads: 1,414

Daily

Ranking: 27,995 of 198,429
Downloads: 6

Depended by

RankDownloadsName

Depends on

RankDownloadsName
81,463,583,217rake
141,342,705,105minitest
55775,917,267rubocop
1,64124,748,558fiddle

Owners

#GravatarHandle
1iconyoseiito