[−][src]Struct wio_terminal::Display
ILI9341 LCD display pins (uses SERCOM7
)
Fields
miso: Pb18<Input<Floating>>
LCD MISO pin
mosi: Pb19<Input<Floating>>
LCD MOSI pin
sck: Pb20<Input<Floating>>
LCD SCK pin
cs: Pb21<Input<Floating>>
LCD chip select pin
dc: Pc6<Input<Floating>>
LCD data/command pin
reset: Pc7<Input<Floating>>
LCD reset pin
backlight: Pc5<Input<Floating>>
LCD backlight pin
Implementations
impl Display
[src]
pub fn init<F: Into<Hertz>, D: DelayMs<u16>>(
self,
clocks: &mut GenericClockController,
sercom7: SERCOM7,
mclk: &mut MCLK,
port: &mut Port,
clock_speed: F,
delay: &mut D
) -> Result<(LCD, Pc5<Output<PushPull>>), ()>
[src]
self,
clocks: &mut GenericClockController,
sercom7: SERCOM7,
mclk: &mut MCLK,
port: &mut Port,
clock_speed: F,
delay: &mut D
) -> Result<(LCD, Pc5<Output<PushPull>>), ()>
Initialize the display and its corresponding SPI bus peripheral. Return a tuple containing the configured display driver struct and backlight pin.
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,