From 7893862eb63e93c777ab99b80e4acacbdd64c3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gro=C3=9F?= Date: Wed, 8 Aug 2018 15:35:25 +0200 Subject: [PATCH] Updated the example for the current status --- examples/embedded_linux_epd4in2/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/embedded_linux_epd4in2/src/main.rs b/examples/embedded_linux_epd4in2/src/main.rs index 0b9d169..16ca13f 100644 --- a/examples/embedded_linux_epd4in2/src/main.rs +++ b/examples/embedded_linux_epd4in2/src/main.rs @@ -9,7 +9,6 @@ use eink_waveshare_rs::{ EPD4in2, drawing::{Graphics, color::Color}, WaveshareInterface, - ConnectionInterface }; use lin_hal::spidev::{self, SpidevOptions}; @@ -104,8 +103,7 @@ fn main() { //TODO: wait for Digital::InputPin //fixed currently with the HackInputPin, see further above - let connection_interface = ConnectionInterface::new(spi, cs, busy_in, dc, rst, delay); - let mut epd4in2 = EPD4in2::new(connection_interface).expect("eink inialize error"); + let mut epd4in2 = EPD4in2::new(spi, cs, busy_in, dc, rst, delay).expect("eink inialize error"); //let mut buffer = [0u8, epd4in2.get_width() / 8 * epd4in2.get_height()]; let mut buffer = [0u8; 15000];