1 unstable release
Uses new Rust 2024
| 0.1.1 | Aug 3, 2025 |
|---|
#1829 in Hardware support
5KB
81 lines
rpi-relay-lib
A Rust library for controlling GPIO relays on a Raspberry Pi using the rppal crate.
Example
use rpi_relay_lib::relay::{Relay, LogicLevel};
let mut relay = Relay::new(24, LogicLevel::ActiveHigh).unwrap();
relay.trigger(150);
Dependencies
~1–1.7MB
~37K SLoC