diff --git a/examples/embedded_linux_epd4in2/src/main.rs b/examples/embedded_linux_epd4in2/src/main.rs index ebf93a7..be268a7 100644 --- a/examples/embedded_linux_epd4in2/src/main.rs +++ b/examples/embedded_linux_epd4in2/src/main.rs @@ -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(Some(1u8.into())) + .with_stroke(Color::Black)) .into_iter(), ); display.draw( Line::new(Coord::new(64, 64), Coord::new(0, 64)) - .with_stroke(Some(1u8.into())) + .with_stroke(Color::Black)) .into_iter(), ); display.draw( Line::new(Coord::new(64, 64), Coord::new(80, 80)) - .with_stroke(Some(1u8.into())) + .with_stroke(Color::Black)) .into_iter(), ); display.draw( Font6x8::render_str("Hello World!") .with_stroke(Some(1u8.into())) - .translate(Coord::new(5 + i, 50)) + .translate(Coord::new(5 + i*5, 50)) .into_iter(), ); epd4in2.update_frame(&mut spi, &display.get_buffer()).unwrap(); epd4in2.display_frame(&mut spi).expect("display frame new graphics"); - if i > 296 { + if i > 60 { break; }