Crates.io | blinkt_cdev |
lib.rs | blinkt_cdev |
version | 0.1.0 |
source | src |
created_at | 2020-12-01 11:56:18.738291 |
updated_at | 2020-12-01 11:56:18.738291 |
description | Interface for Pimoroni Blinkt! for Raspberry Pi. |
homepage | https://github.com/mcollinge/blinkt_cdev |
repository | https://github.com/mcollinge/blinkt_cdev |
max_upload_size | |
id | 318554 |
size | 14,367 |
blinkt_cdev is a Rust library that allows you to control Pimoroni Blinkt! on the Raspberry Pi. This borrows heavily from the awesome Blinkt by golemparts. The difference is that this uses the Rust Embedded gpio-cdev library.
Add dependency blinkt_cdev
to your Cargo.toml
[dependencies]
blinkt_cdev = "0.1.0"
use blinkt_cdev::*;
let mut blinkt = Blinkt::new()?;
blinkt.set_all_pixels(255, 0, 0, 1.0);
blinkt.show()?;
To run an example use the cargo run --example [name]
command.
Current examples:
cargo run --example fade