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§
- Generic display size of 240x320 pixels
- Generic display size of 320x480 pixels
- There are two method for drawing to the screen: Ili9341::draw_raw_iter and Ili9341::draw_raw_slice
- Scroller must be provided in order to scroll the screen. It can only be obtained by configuring the screen for scrolling.
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§
- Helper for CPOL = 0, CPHA = 0.
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