Module st77xx

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§

Command
ST77XX
ST77XXScreen

Enums§

SendCommand

Constants§

BUFFER_SIZE
LS016B8UY
SEQUENCE_BUFFER_SIZE
ST7735
ST7789H2

Type Aliases§

CommandSequence