Crate mipidsi

source ·
Expand description

This crate provides a generic display driver to connect to TFT displays that implement the MIPI Display Command Set.

Uses display_interface to talk to the hardware via transports (currently SPI, I2C and Parallel GPIO).

An optional batching of draws is supported via the batch feature (default on)

List of supported models

  • ST7789
  • ST7735
  • ILI9486
  • ILI9341
  • ILI9342C

Example

// create a DisplayInterface from SPI and DC pin, with no manual CS control
let di = SPIInterfaceNoCS::new(spi, dc);
// create the ILI9486 display driver from the display interface and optional RST pin
let mut display = Builder::ili9486(di)
    .init(&mut delay, Some(rst));
// clear the display to black
display.clear(Rgb666::BLACK).unwrap();

Troubleshooting

See document

Re-exports

Modules

Structs