Crate ili9341

source ·
Expand description

ILI9341 Display Driver

§Usage

To control the display you need to set up:

  • Interface for communicating with display (display-interface-spi crate for SPI)
  • Configuration (reset pin, delay, orientation and size) for display
let iface = SPIInterface::new(spi, dc, cs);

let mut display = Ili9341::new(
    iface,
    reset_gpio,
    &mut delay,
    Orientation::Landscape,
    ili9341::DisplaySize240x320,
)
.unwrap();

display.clear(Rgb565::RED).unwrap()

Structs§

Enums§

  • Available Adaptive Brightness values
  • A ubiquitous error type for all kinds of problems which could happen when communicating with a display
  • Available frame rate in Hz
  • Frame rate clock division
  • Specify state of specific mode of operation
  • The default implementation of the Mode trait from above Should work for most (but not all) boards

Constants§

Traits§

  • Trait that defines display size information
  • For quite a few boards (ESP32-S2-Kaluga-1, M5Stack, M5Core2 and others), the ILI9341 initialization command arguments are slightly different