[][src]Struct wio_terminal::Display

pub struct Display {
    pub miso: Pb18<Input<Floating>>,
    pub mosi: Pb19<Input<Floating>>,
    pub sck: Pb20<Input<Floating>>,
    pub cs: Pb21<Input<Floating>>,
    pub dc: Pc6<Input<Floating>>,
    pub reset: Pc7<Input<Floating>>,
    pub backlight: Pc5<Input<Floating>>,
}

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>>(
    self,
    clocks: &mut GenericClockController,
    sercom7: SERCOM7,
    mclk: &mut MCLK,
    port: &mut Port,
    clock_speed: F,
    delay: &mut Delay
) -> Result<(LCD, Pc5<Output<PushPull>>), ()>
[src]

Initialize the display and its corresponding SPI bus peripheral. Return a tuple containing the configured display driver struct and backlight pin.

Auto Trait Implementations

impl Send for Display

impl Sync for Display

impl Unpin for Display

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.