Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`