diff --git a/examples/embedded_linux_epd1in54/src/main.rs b/examples/embedded_linux_epd1in54/src/main.rs index e1969e4..fe2db14 100644 --- a/examples/embedded_linux_epd1in54/src/main.rs +++ b/examples/embedded_linux_epd1in54/src/main.rs @@ -9,7 +9,7 @@ use eink_waveshare_rs::{ EPD1in54, //drawing::{Graphics}, color::Color, - WaveshareInterface, + WaveshareDisplay, }; use lin_hal::spidev::{self, SpidevOptions}; diff --git a/examples/embedded_linux_epd4in2/src/main.rs b/examples/embedded_linux_epd4in2/src/main.rs index e45ed0d..eb7b102 100644 --- a/examples/embedded_linux_epd4in2/src/main.rs +++ b/examples/embedded_linux_epd4in2/src/main.rs @@ -9,7 +9,7 @@ use eink_waveshare_rs::{ EPD4in2, drawing::{Graphics}, color::Color, - WaveshareInterface, + WaveshareDisplay, }; use lin_hal::spidev::{self, SpidevOptions}; diff --git a/examples/stm32f3discovery/src/main.rs b/examples/stm32f3discovery/src/main.rs index 3dd32ac..ded3f40 100644 --- a/examples/stm32f3discovery/src/main.rs +++ b/examples/stm32f3discovery/src/main.rs @@ -30,7 +30,7 @@ use eink_waveshare_rs::{ SPI_MODE, //drawing::{Graphics}, color::Color, - WaveshareInterface, + WaveshareDisplay, }; diff --git a/src/traits.rs b/src/traits.rs index 87860bc..8e95745 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -6,8 +6,8 @@ use hal::{ use color::Color; -/// Interface for the physical connection between display and the controlling device -pub(crate) mod connection_interface; + + /// All commands need to have this trait which gives the address of the command @@ -48,7 +48,7 @@ where } -pub trait WaveshareInterface +pub trait WaveshareDisplay where SPI: Write, CS: OutputPin,