blinkt 0.1.0

Provides an interface for the Pimoroni Blinkt!, and any similar APA102 strips or boards, on a Raspberry Pi.
Documentation
extern crate rand;
extern crate blinkt;

use std::thread;
use std::time::Duration;
use rand::Rng;

use blinkt::Blinkt;

fn main() {
    let mut rng = rand::thread_rng();
    let mut blinkt = Blinkt::new().unwrap();
    
    blinkt.set_all_pixels_brightness(0.1);
    
    loop {
        for n in 0..8 {
            blinkt.set_pixel(n, rng.gen::<u8>(), rng.gen::<u8>(), rng.gen::<u8>());
        }
        blinkt.show();

        thread::sleep(Duration::from_millis(50));
    }
}