pub struct Screen<SPI, DC, CS, BUSY, RST, ERR>where
SPI: FullDuplex<u8, Error = ERR>,
DC: OutputPin,
CS: OutputPin,
BUSY: InputPin,
RST: OutputPin,{ /* private fields */ }
Implementations§
Source§impl<SPI, DC, CS, BUSY, RST, ERR> Screen<SPI, DC, CS, BUSY, RST, ERR>
impl<SPI, DC, CS, BUSY, RST, ERR> Screen<SPI, DC, CS, BUSY, RST, ERR>
pub fn show_full_screen_image( &mut self, image: &[u8], ) -> Result<(), ScreenError<ERR>>
Sourcepub fn load_partial_image(
&mut self,
x_start: u8,
x_size: u8,
y_start: u16,
y_size: u16,
image: &[u8],
) -> Result<(), ScreenError<ERR>>
pub fn load_partial_image( &mut self, x_start: u8, x_size: u8, y_start: u16, y_size: u16, image: &[u8], ) -> Result<(), ScreenError<ERR>>
x_start
and x_size
are in bytes. y_start
and y_size
are in pixels.
pub fn load_full_update_lut(&mut self) -> Result<(), ERR>
pub fn load_partial_update_lut(&mut self) -> Result<(), ERR>
pub fn power_on(&mut self) -> Result<(), ERR>
pub fn power_off(&mut self) -> Result<(), ERR>
pub fn update_full(&mut self) -> Result<(), ERR>
pub fn update_partial(&mut self) -> Result<(), ERR>
pub fn load_image(&mut self, image: &[u8]) -> Result<(), ERR>
Sourcepub fn set_display_area(
&mut self,
x_start: u8,
x_end: u8,
y_start: u16,
y_end: u16,
) -> Result<(), ScreenError<ERR>>
pub fn set_display_area( &mut self, x_start: u8, x_end: u8, y_start: u16, y_end: u16, ) -> Result<(), ScreenError<ERR>>
x_start
and x_end
are in bytes. y_start
and y_end
are in pixels.
x_start
must be less then x_end
and y_start
less than y_end
.
pub fn write_cmd(&mut self, cmd: Command) -> Result<(), ERR>
pub fn write_data(&mut self, data: u8) -> Result<(), ERR>
pub fn write_cmd_string(&mut self, cmd: Command, data: &[u8]) -> Result<(), ERR>
Auto Trait Implementations§
impl<SPI, DC, CS, BUSY, RST, ERR> Freeze for Screen<SPI, DC, CS, BUSY, RST, ERR>
impl<SPI, DC, CS, BUSY, RST, ERR> RefUnwindSafe for Screen<SPI, DC, CS, BUSY, RST, ERR>where
SPI: RefUnwindSafe,
DC: RefUnwindSafe,
CS: RefUnwindSafe,
BUSY: RefUnwindSafe,
RST: RefUnwindSafe,
impl<SPI, DC, CS, BUSY, RST, ERR> Send for Screen<SPI, DC, CS, BUSY, RST, ERR>
impl<SPI, DC, CS, BUSY, RST, ERR> Sync for Screen<SPI, DC, CS, BUSY, RST, ERR>
impl<SPI, DC, CS, BUSY, RST, ERR> Unpin for Screen<SPI, DC, CS, BUSY, RST, ERR>
impl<SPI, DC, CS, BUSY, RST, ERR> UnwindSafe for Screen<SPI, DC, CS, BUSY, RST, ERR>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more