[][src]Module ssd1331::interface

SSD1331 Communication Interface (SPI)

This is used by the builder method connect_spi.

The types that these interfaces define are quite lengthy, so it is recommended that you create a type alias. Here's an example for SPI1 on an STM32F103xx:

pub type OledDisplay = GraphicsMode<
    SpiInterface<
        Spi<
            SPI1,
            (
                PA5<Alternate<PushPull>>,
                PA6<Input<Floating>>,
                PA7<Alternate<PushPull>>,
            ),
        >,
        PB1<Output<PushPull>>,
    >,
>;

Example

Re-exports

pub use self::spi::SpiInterface;

Modules

spi

SSD1331 SPI interface

Traits

DisplayInterface

A method of communicating with SSD1331