pub struct Display {
pub accel_irq: Pb14<Input<Floating>>,
pub tft_mosi: Pb15<Input<Floating>>,
pub tft_sck: Pb13<Input<Floating>>,
pub tft_reset: Pa0<Input<Floating>>,
pub tft_cs: Pb12<Input<Floating>>,
pub tft_dc: Pb5<Input<Floating>>,
pub tft_backlight: Pa1<Input<Floating>>,
}
Expand description
Display pins
Fields
accel_irq: Pb14<Input<Floating>>
tft_mosi: Pb15<Input<Floating>>
tft_sck: Pb13<Input<Floating>>
tft_reset: Pa0<Input<Floating>>
tft_cs: Pb12<Input<Floating>>
tft_dc: Pb5<Input<Floating>>
tft_backlight: Pa1<Input<Floating>>
Implementations
pub fn init(
self,
clocks: &mut GenericClockController,
sercom4: SERCOM4,
mclk: &mut MCLK,
timer2: TC2,
delay: &mut Delay,
port: &mut Port
) -> Result<(ST7735<SPIMaster4<Sercom4Pad2<Pb14<PfC>>, Sercom4Pad3<Pb15<PfC>>, Sercom4Pad1<Pb13<PfC>>>, Pb5<Output<PushPull>>, Pa0<Output<PushPull>>>, Pwm2<PA01>), ()>
pub fn init(
self,
clocks: &mut GenericClockController,
sercom4: SERCOM4,
mclk: &mut MCLK,
timer2: TC2,
delay: &mut Delay,
port: &mut Port
) -> Result<(ST7735<SPIMaster4<Sercom4Pad2<Pb14<PfC>>, Sercom4Pad3<Pb15<PfC>>, Sercom4Pad1<Pb13<PfC>>>, Pb5<Output<PushPull>>, Pa0<Output<PushPull>>>, Pwm2<PA01>), ()>
Convenience for setting up the on board display.
Auto Trait Implementations
impl RefUnwindSafe for Display
impl UnwindSafe for Display
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.