Skip to main content

Module display

Module display 

Source
Expand description

ILI9342C panel bring-up shared by both boards (feature display).

The M5Stack Fire27 and CoreS3 use the same 320x240 ILI9342C panel with the same controller options (inverted colors, BGR order); only the reset wiring differs — Fire27 has a GPIO reset pin, the CoreS3 panel is reset via the AW9523B expander (see [super::cores3::power_display_reset]) and falls back to lcd-async’s SPI SoftReset ([NoResetPin]), which is harmless after the hardware pulse.

Generic over the [Interface]: works with a plain shared Spi bus device (the examples) as well as a descriptor-backed SpiDmaBus device (super::spi2).

Re-exports§

pub use super::SCREEN_H;
pub use super::SCREEN_W;

Functions§

init_ili9342c
Initialise the panel without a reset pin (CoreS3). The hardware reset must have been pulsed beforehand (AW9523B LCD_RST); init falls back to a SPI SoftReset command.
init_ili9342c_with_reset
Initialise the panel with a hardware reset pin (Fire27, RST=GPIO33).

Type Aliases§

Ili9342c
The configured panel type: ILI9342C in RGB565 over DI.