Crate ili9488_rs

Source
Expand description

ILI9488 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_bus, cs);

let mut display = Ili9488::new(
    iface,
    reset_gpio,
    &mut delay,
    Orientation::Landscape,
    Rgb666Mode,
)
.unwrap();

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

Structs§

DisplaySize320x480
Generic display size of 320x480 pixels
Ili9488
The ILI9488 Driver
Rgb111Mode
3 bpp
Rgb565Mode
16 bpp
Rgb666Mode
18 bpp
Scroller
Scroller must be provided in order to scroll the screen. It can only be obtained by configuring the screen for scrolling.

Enums§

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

Traits§

DisplaySize
Trait that defines display size information
Ili9488MemoryWrite
Trait implementation for writing different pixel formats to the ili9488’s memory
Ili9488PixelFormat
Trait for Valid Pixel Formats for the ILI9488
Mode
For quite a few boards (ESP32-S2-Kaluga-1, M5Stack, M5Core2 and others), the ILI9488 initialization command arguments are slightly different