Expand pattern for testing chaining

This commit is contained in:
Tangent 128 2019-10-27 01:29:40 -04:00
parent a29ec85a6c
commit a6bacb391b

View file

@ -37,7 +37,7 @@ fn main() -> ! {
].iter().cycle().take(85) ].iter().cycle().take(85)
).cycle(); ).cycle();
let mut buffer = [HardwareRgb(255,255,0); 150]; let mut buffer = [HardwareRgb(255,255,0); 200];
let mut light = false; let mut light = false;
//delay(48_000_000 * 3); //delay(48_000_000 * 3);
loop { loop {
@ -48,9 +48,9 @@ fn main() -> ! {
} }
light = !light; light = !light;
for (i, pixel) in pattern.clone().take(150).enumerate() { for (i, pixel) in pattern.clone().take(200).enumerate() {
buffer[i] = correct(pixel); buffer[i] = correct(pixel);
// buffer[i] = HardwareRgb(0,0,0); //buffer[i] = HardwareRgb(255,128,0);
} }
buffer.iter().render_to(&mut lights); buffer.iter().render_to(&mut lights);
@ -64,6 +64,6 @@ fn main() -> ! {
// lights.byte(255); // lights.byte(255);
pattern.next(); pattern.next();
delay(12_000_000); delay(1_000_000);
} }
} }