Bright full-power version

This commit is contained in:
Tangent 128 2019-03-19 22:38:20 -04:00
parent 51e5506cd8
commit 52ed3d19df

View file

@ -17,13 +17,13 @@ use lights_hal::{boot, delay, entry};
fn main() -> ! {
let mut lights = GammaCorrector(boot());
let red = Rgb(150, 0, 0);
let yellow = Rgb(150, 150, 0);
let green = Rgb(0, 150, 0);
let teal = Rgb(0, 75, 150);
let purple = Rgb(75, 0, 150);
let red = Rgb(255, 0, 0);
let yellow = Rgb(255, 255, 0);
let green = Rgb(0, 255, 0);
let teal = Rgb(0, 128, 255);
let purple = Rgb(128, 0, 255);
let segment_length = 11;
let segment_length = 60;
let mut gradient = linear_gradient(red, yellow, segment_length)
.chain(linear_gradient(yellow, green, segment_length))
@ -33,7 +33,7 @@ fn main() -> ! {
.chain(repeat(gray(255)).take(60)).cycle();
loop {
gradient.clone().take(20).render_to(&mut lights);
gradient.clone().take(60).render_to(&mut lights);
gradient.next();
delay(1_000_000);