pub struct Display<'a, const W: u16, const H: u16> { /* private fields */ }Implementations§
Source§impl<const W: u16, const H: u16> Display<'_, W, H>
impl<const W: u16, const H: u16> Display<'_, W, H>
pub fn new<'a>( p: &Pico, spi: SpiBus<'a>, cs: PinID, rst: PinID, data: PinID, bs: BusySignal, ) -> Display<'a, W, H>
pub fn create( p: &Pico, tx: PinID, sck: PinID, cs: PinID, rst: PinID, data: PinID, bs: BusySignal, ) -> Result<Display<'_, W, H>, SpiError>
pub fn off(&mut self)
pub fn sleep(&mut self)
pub fn refresh(&mut self)
pub fn width(&self) -> u16
pub fn height(&self) -> u16
pub fn is_busy(&self) -> bool
pub fn is_ready(&self) -> bool
pub fn update(&mut self, b: &[u8])
pub fn spi_bus(&mut self) -> &mut Spi
pub fn shift_register(&self) -> Option<&ShiftRegister>
Sourcepub unsafe fn update_async(&mut self, b: &[u8])
pub unsafe fn update_async(&mut self, b: &[u8])
Returns immediately, the user must issue a POF command using the ‘off’ function once the display refresh is complete.
Auto Trait Implementations§
impl<'a, const W: u16, const H: u16> Freeze for Display<'a, W, H>
impl<'a, const W: u16, const H: u16> !RefUnwindSafe for Display<'a, W, H>
impl<'a, const W: u16, const H: u16> !Send for Display<'a, W, H>
impl<'a, const W: u16, const H: u16> !Sync for Display<'a, W, H>
impl<'a, const W: u16, const H: u16> Unpin for Display<'a, W, H>
impl<'a, const W: u16, const H: u16> !UnwindSafe for Display<'a, W, H>
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