Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aiecee/blinkt_cdev
Rust library to control the excellent Pimoroni Blinkt for Raspberry Pi's
https://github.com/aiecee/blinkt_cdev
pimoroni pimoroni-blinkt raspberry-pi rust
Last synced: 9 days ago
JSON representation
Rust library to control the excellent Pimoroni Blinkt for Raspberry Pi's
- Host: GitHub
- URL: https://github.com/aiecee/blinkt_cdev
- Owner: aiecee
- License: mit
- Created: 2020-12-01T10:52:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-01T11:55:30.000Z (about 4 years ago)
- Last Synced: 2025-01-21T05:11:33.547Z (17 days ago)
- Topics: pimoroni, pimoroni-blinkt, raspberry-pi, rust
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blinkt_cdev
[![crates.io](https://meritbadge.herokuapp.com/blinkt_cdev)](https://crates.io/crates/blinkt_cdev)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
[![Minimum rustc version](https://img.shields.io/badge/rustc-v1.39.0-lightgray.svg)](https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html)blinkt_cdev is a Rust library that allows you to control [Pimoroni Blinkt!](https://shop.pimoroni.com/products/blinkt) on the Raspberry Pi. This borrows heavily from the awesome [Blinkt](https://github.com/golemparts/blinkt) by golemparts. The difference is that this uses the Rust Embedded [gpio-cdev](https://github.com/rust-embedded/gpio-cdev) library.
## Documentation
- Latest Release: [docs.rs/blinkt_cdev/](https://docs.rs/blinkt_cdev/)
## Usage
Add dependency `blinkt_cdev` to your `Cargo.toml`
```toml
[dependencies]
blinkt_cdev = "0.1.0"
``````rust
use blinkt_cdev::*;let mut blinkt = Blinkt::new()?;
blinkt.set_all_pixels(255, 0, 0, 1.0);
blinkt.show()?;
```## Examples
To run an example use the `cargo run --example [name]` command.
Current examples:
- `cargo run --example fade`