blinkt 0.4.0

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

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

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().unwrap();

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