mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Streamline a few things
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user