Fix previous commit
parent
533cb84123
commit
e92af2198a
|
|
@ -193,29 +193,29 @@ fn run() -> Result<(), std::io::Error> {
|
||||||
let mut display = DisplayEink42BlackWhite::default();
|
let mut display = DisplayEink42BlackWhite::default();
|
||||||
display.draw(
|
display.draw(
|
||||||
Circle::new(Coord::new(64, 64), 64)
|
Circle::new(Coord::new(64, 64), 64)
|
||||||
.with_stroke(Color::Black))
|
.with_stroke(Color::Black)
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
display.draw(
|
display.draw(
|
||||||
Line::new(Coord::new(64, 64), Coord::new(0, 64))
|
Line::new(Coord::new(64, 64), Coord::new(0, 64))
|
||||||
.with_stroke(Color::Black))
|
.with_stroke(Color::Black)
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
display.draw(
|
display.draw(
|
||||||
Line::new(Coord::new(64, 64), Coord::new(80, 80))
|
Line::new(Coord::new(64, 64), Coord::new(80, 80))
|
||||||
.with_stroke(Color::Black))
|
.with_stroke(Color::Black)
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
display.draw(
|
display.draw(
|
||||||
Font6x8::render_str("Hello World!")
|
Font6x8::render_str("Hello World!")
|
||||||
.with_stroke(Some(1u8.into()))
|
.with_stroke(Color::Black)
|
||||||
.translate(Coord::new(5 + i*5, 50))
|
.translate(Coord::new(5 + i*10, 50))
|
||||||
.into_iter(),
|
.into_iter(),
|
||||||
);
|
);
|
||||||
|
|
||||||
epd4in2.update_frame(&mut spi, &display.get_buffer()).unwrap();
|
epd4in2.update_frame(&mut spi, &display.get_buffer()).unwrap();
|
||||||
epd4in2.display_frame(&mut spi).expect("display frame new graphics");
|
epd4in2.display_frame(&mut spi).expect("display frame new graphics");
|
||||||
if i > 60 {
|
if i > 20 {
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue