Browse Source

add a empty screen first

embedded-hal-1.0
Chris 7 years ago
parent
commit
f06b672899
  1. 3
      examples/embedded_linux_epd2in9/src/main.rs

3
examples/embedded_linux_epd2in9/src/main.rs

@ -128,6 +128,9 @@ fn run() -> Result<(), std::io::Error> {
println!("Test all the rotations");
let mut buffer = Buffer2in9::default();
let mut display = Display::new(epd.width(), epd.height(), &mut buffer.buffer);
epd.update_frame(&mut spi, display.buffer()).unwrap();
epd.display_frame(&mut spi);
display.set_rotation(DisplayRotation::Rotate0);
display.draw(
Font6x8::render_str("Rotate 0!")

Loading…
Cancel
Save