mirror of
https://github.com/FliegendeWurst/raspi-oled.git
synced 2024-11-28 13:05:53 +00:00
add loop
This commit is contained in:
parent
3846d907cb
commit
100b40382d
@ -18,6 +18,7 @@ fn main() {
|
||||
disp.init().unwrap();
|
||||
disp.flush().unwrap();
|
||||
|
||||
loop {
|
||||
disp.draw(
|
||||
Line::new(Point::new(8, 16 + 16), Point::new(8 + 16, 16 + 16))
|
||||
.stroke(Some(BinaryColor::On))
|
||||
@ -63,4 +64,8 @@ fn main() {
|
||||
Image::new(include_bytes!("../rust.raw"), 64, 64).translate(Point::new(32, 0));
|
||||
disp.draw(im.into_iter());
|
||||
disp.flush().unwrap();
|
||||
|
||||
sleep(Duration::from_secs(2));
|
||||
disp.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user