Fix typo
This commit is contained in:
parent
05e927d0a8
commit
42e71fe3bd
1 changed files with 4 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ pub enum PixelColour {
|
||||||
White = 1,
|
White = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait ApplyParitalWindow: private::Sealed {
|
pub trait ApplyPartialWindow: private::Sealed {
|
||||||
fn apply<
|
fn apply<
|
||||||
BusyPin: InputPin,
|
BusyPin: InputPin,
|
||||||
ResetPin: OutputPin,
|
ResetPin: OutputPin,
|
||||||
|
|
@ -96,7 +96,7 @@ mod private {
|
||||||
|
|
||||||
pub struct NoPartialWindow;
|
pub struct NoPartialWindow;
|
||||||
|
|
||||||
impl ApplyParitalWindow for NoPartialWindow {
|
impl ApplyPartialWindow for NoPartialWindow {
|
||||||
fn apply<
|
fn apply<
|
||||||
BusyPin: InputPin,
|
BusyPin: InputPin,
|
||||||
ResetPin: OutputPin,
|
ResetPin: OutputPin,
|
||||||
|
|
@ -121,7 +121,7 @@ pub struct AutomaticPartialWindow {
|
||||||
max_y: u16,
|
max_y: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ApplyParitalWindow for AutomaticPartialWindow {
|
impl ApplyPartialWindow for AutomaticPartialWindow {
|
||||||
fn apply<
|
fn apply<
|
||||||
BusyPin: InputPin,
|
BusyPin: InputPin,
|
||||||
ResetPin: OutputPin,
|
ResetPin: OutputPin,
|
||||||
|
|
@ -272,7 +272,7 @@ impl<BusyPin: InputPin, ResetPin: OutputPin, DcPin: OutputPin, Spi: SpiDevice, D
|
||||||
self.wait_for_display();
|
self.wait_for_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn draw_full_frame<PartialWindow: ApplyParitalWindow>(&mut self, double_frame: &mut DoubleFrame<PartialWindow>) {
|
pub fn draw_full_frame<PartialWindow: ApplyPartialWindow>(&mut self, double_frame: &mut DoubleFrame<PartialWindow>) {
|
||||||
double_frame.partial_window.apply(self);
|
double_frame.partial_window.apply(self);
|
||||||
self.write_command(0x10);
|
self.write_command(0x10);
|
||||||
for byte in double_frame.old.0 {
|
for byte in double_frame.old.0 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue