capsules_extra

Module st77xx

Source
Expand description

ST77xx Screen

The screen supports multiple physical busses, and this driver is implemented on top of the generic Bus interface.

§Usage

SPI example

let tft = components::st77xx::ST77XXComponent::new(mux_alarm,
                                                   bus,
                                                   Some(&nrf52840::gpio::PORT[GPIO_D3]),
                                                   Some(&nrf52840::gpio::PORT[GPIO_D2]),
                                                   &capsules::st77xx::ST7735).finalize(
    components::st77xx_component_static!(
        // bus type
        capsules::bus::SpiMasterBus<
            'static,
            VirtualSpiMasterDevice<'static, nrf52840::spi::SPIM>,
        >,
        // timer type
        nrf52840::rtc::Rtc,
        // pin type
        nrf52::gpio::GPIOPin<'static>,
    ),
);

Structs§

Enums§

Constants§

Type Aliases§