Skip to content

Fix AtomS3R LCD padding for mipi_spi - #98

Open
gwaland wants to merge 2 commits into
m5stack:mainfrom
gwaland:fix-atoms3r-mipi-padding
Open

Fix AtomS3R LCD padding for mipi_spi#98
gwaland wants to merge 2 commits into
m5stack:mainfrom
gwaland:fix-atoms3r-mipi-padding

Conversation

@gwaland

@gwaland gwaland commented Jul 3, 2026

Copy link
Copy Markdown

Summary

Adds explicit pad_width and pad_height values to the AtomS3R atoms3r_lcd mipi_spi display definitions.

ESPHome 2026.6.x changed mipi_spi padding/rotation behavior. Without explicit padding, AtomS3R ST7789V displays using rotation: 180° can show corrupted/pixelated output even though the device otherwise boots and functions normally.

Tested

  • Confirmed display corruption with ESPHome 2026.6.x
  • Confirmed ESPHome 2026.5.3 works without this change
  • Confirmed adding pad_width: 2 and pad_height: 1 fixes the display while preserving rotation: 180

Fixes #96

@zenilify

Copy link
Copy Markdown

Confirming this fix also works for the AtomS3R + Voice Pyramid combo (examples/voice_assistant/echo_pyramid_example.yaml).

Setup: AtomS3R seated in Voice Pyramid, ESPHome Device Builder 2026.7.4 (HAOS add-on), config taken from the repo example unmodified.

Symptom: identical to #96 — display shows only noise/random pixels (with a small dark rectangle where draws land), while voice assistant, wake words, media player and everything else work perfectly. First boot after flashing over factory firmware also showed the factory error screen "ghosting" (panel GRAM retention) until a full cold power-cycle.

Fix applied: added the two padding lines from this PR to the mipi_spi display block:

    dimensions:
      height: 128
      width: 128
      offset_width: 2
      offset_height: 1
      pad_width: 2
      pad_height: 1

Rebuilt + OTA'd → display renders correctly immediately (idle illustration, state screens all fine, 180° rotation intact).

Thanks for the patch — hoping this gets merged soon since every build on current ESPHome hits it. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

atoms3r-with-echo-base → Just pixels on the screen

2 participants