This commit is contained in:
chux0519 2019-11-15 22:01:23 +08:00
parent 3846d907cb
commit 100b40382d

View File

@ -18,6 +18,7 @@ fn main() {
disp.init().unwrap(); disp.init().unwrap();
disp.flush().unwrap(); disp.flush().unwrap();
loop {
disp.draw( disp.draw(
Line::new(Point::new(8, 16 + 16), Point::new(8 + 16, 16 + 16)) Line::new(Point::new(8, 16 + 16), Point::new(8 + 16, 16 + 16))
.stroke(Some(BinaryColor::On)) .stroke(Some(BinaryColor::On))
@ -63,4 +64,8 @@ fn main() {
Image::new(include_bytes!("../rust.raw"), 64, 64).translate(Point::new(32, 0)); Image::new(include_bytes!("../rust.raw"), 64, 64).translate(Point::new(32, 0));
disp.draw(im.into_iter()); disp.draw(im.into_iter());
disp.flush().unwrap(); disp.flush().unwrap();
sleep(Duration::from_secs(2));
disp.clear();
}
} }