| Crates.io | rpi-relay-lib |
| lib.rs | rpi-relay-lib |
| version | 0.1.1 |
| created_at | 2025-08-03 10:22:57.464688+00 |
| updated_at | 2025-08-03 10:22:57.464688+00 |
| description | GPIO relay control library for Raspberry Pi |
| homepage | https://github.com/bledd/rpi-relay-lib |
| repository | https://github.com/bledd/rpi-relay-lib |
| max_upload_size | |
| id | 1779590 |
| size | 8,238 |
A Rust library for controlling GPIO relays on a Raspberry Pi using the rppal crate.
use rpi_relay_lib::relay::{Relay, LogicLevel};
let mut relay = Relay::new(24, LogicLevel::ActiveHigh).unwrap();
relay.trigger(150);