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