Registry / other / rpi-embedded

rpi-embedded

JSON →
library0.1.0rscratesunverified

Interface for the Raspberry Pi's GPIO, I2C, PWM, SPI and UART peripherals. Forked from RPPAL.

# Cargo.toml [dependencies] rpi_embedded = "0.1.0"
INSTALL
IMPORT
SIG · RPI-EMBEDDED
R
rpi-embedded
otherrustv0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Gpio
use rpi_embedded::gpio::Gpio;

Controls GPIO pin 17 on a Raspberry Pi.

use rpi_embedded::gpio::Gpio; fn main() -> Result<(), Box<dyn std::error::Error>> { let gpio = Gpio::new()?; let mut pin = gpio.get(17)?.into_output(); pin.set_high(); Ok(()) }
Debug
Known issues
gotchaRequires running on a Raspberry Pi with appropriate permissions.
fix
Run as root or add user to gpio group.
affects: >=0.1.0
Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rpi-embedded — cargo add rpi-embedded · libregistry