Skip to content

T4-S3-AMOLED fails to compile when using mini_spi #11021

@dxdr

Description

@dxdr

The problem

When trying to compile using mini_spi get the error message:

Unknown value 'T4-S3-AMOLED', did you mean 'T-DISPLAY-S3-AMOLED', 'T-DISPLAY-S3-AMOLED-PLUS'?.

T4-S3-AMOLED is listed in the table "Boards with integrated displays"

Compiles fine with the soon to be depreciated qspi_dbi

Which version of ESPHome has the issue?

2025.9.3

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

substitutions:
  disp_name: Lilygo T4 S3

esphome:
  name: "lilygo-t4-s3"
  friendly_name: Lilygo T4 S3
  platformio_options:
    build_unflags: -Werror=all
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
  variant: esp32s3
  flash_size: 16MB
  framework:
    type: esp-idf

logger:
  level: info

api:

ota:
  platform: esphome

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

spi:
  id: quad_spi
  type: quad
  clk_pin: 15
  data_pins: [14, 10, 16, 12]

i2c:
  sda: 6
  scl: 7

color:
  - id: color_text
    red: 100%
    green: 0%
    blue: 0%
    white: 0%

font:
  - file: 'fonts/GothamRnd-Bold.ttf'
    id: extra_large
    size: 250

  - file: 'fonts/GothamRnd-Book.ttf'
    id: font_large
    size: 40

  - file: 'fonts/GothamRnd-Book.ttf'
    id: font_readyin
    size: 110

  - file: 'fonts/GothamRnd-Book.ttf'
    id: font_extralarge
    size: 60

  - file: 'fonts/GothamRnd-Book.ttf'
    id: font_medium
    size: 20

  - file: 'fonts/materialdesignicons-webfont.ttf'
    id: font_mdi
    size: 96
    glyphs:
      - "\U000F0425" # mdi-power
      - "\U000F058C" # mdi-water
  
  - file: 'fonts/materialdesignicons-webfont.ttf'
    id: font_mdi_large
    size: 250
    glyphs:
      - "\U000F058D" # mdi-water-off

display:
  - platform: mipi_spi
    id: my_display
    model: T4-S3-AMOLED
    #data_rate: 80MHz
    #spi_mode: mode0
    #dimensions:
    #  width: 450
    #  height: 600
    #  offset_width: 16
    #color_order: rgb
    #invert_colors: false
    brightness: 255
    #cs_pin: 11
    #reset_pin: 13
    #enable_pin: 9
    #update_interval: never
    #auto_clear_enabled: false
    rotation: 90
    pages:
      - id: page1
        lambda: |-          
          it.print(0, 0, id(font_large),color_text, TextAlign::TOP_LEFT, "Hello World! #3");


psram:
  mode: octal

captive_portal:

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions