Streamline a few things

This commit is contained in:
Chris
2018-10-19 16:26:31 +02:00
parent a1adeb77a4
commit 3b0b5962ec
6 changed files with 27 additions and 68 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ extern crate eink_waveshare_rs;
use eink_waveshare_rs::{
EPD1in54,
Buffer1in54,
graphics::{Display, DisplayRotation, DisplayDimension},
graphics::{Display, DisplayRotation},
color::Color,
WaveshareDisplay,
};
@@ -126,7 +126,7 @@ fn run() -> Result<(), std::io::Error> {
println!("Test all the rotations");
let mut buffer = Buffer1in54::default();
let mut display = Display::new(buffer.width(), buffer.height(), &mut buffer.buffer);
let mut display = Display::new(epd.width(), epd.height(), &mut buffer.buffer);
display.set_rotation(DisplayRotation::Rotate0);
display.draw(
Font6x8::render_str("Rotate 0!")