raspberrypi-utils-rs
Rust bindings for raspberrypi-utils. Mainly for piolib.
Project structure:
- raspberrypi-utils-sys - Low-level unsafe bindings to raspberrypi-utils.
- raspberrypi-utils - Safe Ws2812 Rust interface on top of
raspberrypi-utils-sys.
Code generation uses a cached clone under raspberrypi-utils-git; run git checkout <commit-hash-or-tag> occasionally to fetch the latest upstream tags before regenerating versioned_files.
Building
libcamera-sys requires cmake device-tree-compiler libfdt-dev libgnutls28-dev packages installed and accessible via pkg-config.
No other special dependencies are needed. All crates can be built from the root workspace dir with cargo build --workspace.
Running examples
Run LED string animation (code):
cargo run --example ws281x
Notes
Contributions are welcome! Please open an issue or submit a pull request.
License
Licensed under either of
- BSD 3-Clause License, (LICENSE-BSD or https://opensource.org/license/bsd-3-clause)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.