diff --git a/src/lib.rs b/src/lib.rs index 1682658..eb43d53 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,7 +69,7 @@ pub enum PixelColour { White = 1, } -pub trait ApplyParitalWindow: private::Sealed { +pub trait ApplyPartialWindow: private::Sealed { fn apply< BusyPin: InputPin, ResetPin: OutputPin, @@ -96,7 +96,7 @@ mod private { pub struct NoPartialWindow; -impl ApplyParitalWindow for NoPartialWindow { +impl ApplyPartialWindow for NoPartialWindow { fn apply< BusyPin: InputPin, ResetPin: OutputPin, @@ -121,7 +121,7 @@ pub struct AutomaticPartialWindow { max_y: u16, } -impl ApplyParitalWindow for AutomaticPartialWindow { +impl ApplyPartialWindow for AutomaticPartialWindow { fn apply< BusyPin: InputPin, ResetPin: OutputPin, @@ -272,7 +272,7 @@ impl(&mut self, double_frame: &mut DoubleFrame) { + pub fn draw_full_frame(&mut self, double_frame: &mut DoubleFrame) { double_frame.partial_window.apply(self); self.write_command(0x10); for byte in double_frame.old.0 {