Registry / other / gpio
library0.4.1rscratesunverified

Fast GPIO interfaces for Linux.

# Cargo.toml [dependencies] gpio = "0.4.1"
INSTALL
IMPORT
SIG · GPIO
G
gpio
otherrustv0.4.1
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 gpio::Gpio;

Set a GPIO pin to high output

use gpio::Gpio; fn main() -> Result<(), gpio::Error> { let gpio = Gpio::new(17)?; let mut output = gpio.into_output()?; output.set_high()?; Ok(()) }
Debug
Known issues
gotchaRequires appropriate permissions to access GPIO on Linux.
fix
Run as root or add user to the gpio group.
affects: all
Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
gpio — cargo add gpio · libregistry