[mipi_spi] M5STACK-ATOMS3R-GC9107 preset: display stays completely blank, no errors, show_test_card produces no output
The problem
On a stock M5Stack AtomS3R, the built-in 128x128 display never shows anything under ESPHome — screen stays completely black/blank — even though:
- The backlight (driven separately via an LP5562 LED controller over I2C) turns on and can be controlled fine.
- Boot logs show a completely clean init sequence for the panel: all expected ST7789V/GC9107-style register writes,
SLPOUT (0x11),DISPLAY_ON (0x29),INVON (0x21), andMADCTLall get sent with no communication errors or warnings anywhere in the log. - Using the exact ESPHome-provided board preset model:
M5STACK-ATOMS3R-GC9107(not a hand-rolled config) produces the same result. - Enabling
show_test_card: true— which should draw a full-screen test pattern completely independent of any user lambda/font — also produces no visible output. This rules out the issue being anywhere in user-supplied lambda code. - The same physical unit displays correctly when flashed with M5Stack's own UIFlow firmware, confirming the panel, its wiring, backlight, and SPI/DC/CS/RESET pins are all fully functional. This isolates the bug to the ESPHome
mipi_spicomponent /M5STACK-ATOMS3R-GC9107model definition itself.
I also tried working around this myself by switching to model: CUSTOM with a hand-built init sequence (to control delay placement around SLPOUT), which didn't help either — worth noting that the "clean" board preset should not require this kind of intervention in the first place.
Steps to reproduce Flash an M5Stack AtomS3R with the attached minimal config (minimal_repro.yaml), which uses only: Wi-Fi + API + OTA (for a normal boot) psram: (octal mode, required for full-buffer display) spi: bus (clk_pin: GPIO15, mosi_pin: GPIO21 — the module's actual wiring) display: using platform: mipi_spi, model: M5STACK-ATOMS3R-GC9107, show_test_card: true Observe boot logs (attached, boot_log.txt) — init completes with no errors. Observe the physical screen: stays blank/black. No test pattern appears. Flash the same unit with UIFlow — confirm the screen displays correctly, proving hardware is fine.
Which version of ESPHome has the issue?
ESPHome version: 2026.8.1
What type of installation are you using?
Home Assistant Add-on
What platform are you using?
ESP32
Component causing the issue
mipi_spi
YAML Config
esphome:
name: atom-s3r-can-display
friendly_name: AtomS3R Sniffer
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
type: esp-idf
# lp5562 (backlight LED driver) is not a built-in ESPHome component -
# it's pulled in from M5Stack's own component repo.
external_components:
- source: github://m5stack/esphome-yaml/components
components: [lp5562]
refresh: 0s
psram:
mode: octal
speed: 80MHz
logger:
level: DEBUG
logs:
canbus: DEBUG
api:
encryption:
key: "ENCRYPTION_KEY"
ota:
- platform: esphome
wifi:
ssid: "SSID"
password: "PASSWORD"
# Placeholders for your car sensors so the display lambda doesn't throw
# compilation errors. These entity_ids almost certainly do NOT exist in your
# Home Assistant yet - you'll need a real vehicle data source (an OBD/CAN
# integration, or sensors derived from the canbus: section below) before
# these show up as entities or return real values. Replace entity_id with
# your real HA entities once you have them.
sensor:
- platform: homeassistant
id: vehicle_speed
entity_id: sensor.vehicle_speed
- platform: homeassistant
id: current_odometer
entity_id: sensor.vehicle_odometer
- platform: homeassistant
id: raw_fuel_rate
entity_id: sensor.vehicle_fuel_rate
- platform: homeassistant
id: fuel_level
entity_id: sensor.vehicle_fuel_level
font:
- file: "gfonts://Roboto"
id: font_small
size: 12
# -------------------------------------------------------------
# I2C BUS & BACKLIGHT POWER CONTROLLER (LP5562)
# -------------------------------------------------------------
i2c:
id: bsp_bus
sda:
number: GPIO45
ignore_strapping_warning: true
scl:
number: GPIO0
ignore_strapping_warning: true
lp5562:
id: lp5562_led
i2c_id: bsp_bus
use_internal_clk: true
white_current: 17.5
output:
- platform: lp5562
id: lp5562_white_channel
lp5562_id: lp5562_led
channel: white
light:
- platform: monochromatic
name: "LCD Backlight"
id: lcd_backlight
output: lp5562_white_channel
restore_mode: RESTORE_DEFAULT_ON
# -------------------------------------------------------------
# SPI DISPLAY SYSTEM (mipi_spi driver, ST7789V panel)
# -------------------------------------------------------------
spi:
clk_pin: GPIO15
mosi_pin: GPIO21
display:
- platform: mipi_spi
id: my_display
model: M5STACK-ATOMS3R-GC9107
update_interval: 1s
show_test_card: true
# -------------------------------------------------------------
# ISOLATED CAN BUS TRANSCEIVER
# -------------------------------------------------------------
canbus:
- platform: esp32_can
id: isolated_can_bus
tx_pin: GPIO6
rx_pin: GPIO5
can_id: 4 # placeholder TX identity; doesn't filter received frames
bit_rate: 500kbpsAnything in the logs that might be useful for us?
Additional information
Steps to reproduce
- Flash an M5Stack AtomS3R with the attached minimal config (
minimal_repro.yaml), which uses only: *Wi-Fi + API + OTA (for a normal boot) *psram: (octal mode, required for full-buffer display) *spi:bus (clk_pin: GPIO15,mosi_pin: GPIO21— the module's actual wiring) *display:usingplatform: mipi_spi,model: M5STACK-ATOMS3R-GC9107,show_test_card: true - Observe boot logs (attached,
boot_log.txt) — init completes with no errors. - Observe the physical screen: stays blank/black. No test pattern appears.
- Flash the same unit with UIFlow — confirm the screen displays correctly, proving hardware is fine.
Expected behavior
show_test_card: true should render a visible test pattern on the panel, using the board's own built-in preset pins/model, with no additional configuration required.
Actual behavior
Screen remains blank/black indefinitely. No errors, warnings, or unusual log lines are produced at any point — the log is indistinguishable from a "successful" init.
Attachments minimal_repro.yaml — minimal config to reproduce boot_log.txt — showing clean init with no errors
Additional context
This may be related to other recently-reported mipi_spi regressions (e.g. #17065, #17305, #16714, #17747), which cover a range of symptoms (white screens, scrambled output, missing content, partial-update corruption) across several display models since the ili9xxx/st7789v → mipi_spi migration. This report is specifically about a fully blank/black result with zero errors, using an official board preset and show_test_card, which I don't believe matches any of those exactly.
Note on #15586 or #17471 (not a duplicate): #15586 reports a superficially similar symptom ("blank screen, backlight on, no errors") on the M5Stack Tab5 (ESP32-P4), but that's a different board, a different display bus (mipi_dsi, not mipi_spi), and a different panel driver chip (ST7123, not GC9107). Its root cause (engineering-sample P4 silicon timing, fixed in PR #16975) doesn't apply to an ESP32-S3-based mipi_spi/GC9107 setup. I'm flagging this explicitly since the surface symptom is easy to conflate with an unrelated bug.
Source: esphome/esphome