ESPHome + 2432S024C Display (ILI9341)

I have an issue getting ESP Home to run with an “ESP32 2432S024C” Touch Display.

The display uses ILI9341 and touch CST820.

The code snippets from the board manufacturer refer to the reset pin as “-1” but ESPHome obviously does not accept a “-1” pin:

I took the code snipped from the ESP Home documentation:

spi:
  clk_pin: 14
  mosi_pin: 13
  miso_pin: 12

color:
  - id: my_red
    red: 100%
    green: 3%
    blue: 5%

display:
  - platform: ili9xxx
    model: ili9341
    dc_pin: 2
    reset_pin: 1
    lambda: |-
      it.fill(COLOR_BLACK);
      it.fill(my_red);

But display stays black and ESP Home log says:

[10:31:06][W][component:214]: Component display took a long time for an operation (0.08 s).
[10:31:06][W][component:215]: Components should block for at most 20-30ms.
[10:31:07][W][component:214]: Component display took a long time for an operation (0.08 s).
[10:31:07][W][component:215]: Components should block for at most 20-30ms.

Ok those pin settings seems to work and displays an image:

color:
  - id: my_red
    red: 100%
    green: 3%
    blue: 5%
  - id: my_blue
    red: 5%
    green: 3%
    blue: 100%

spi:
 clk_pin: GPIO14
 mosi_pin: GPIO13
 miso_pin: GPIO12

image:
  - file: "test/test.jpg"
    id: my_image
    type: RGB24

display:
  - platform: ili9xxx
    model: TFT 2.4
    cs_pin: GPIO15
    dc_pin: GPIO2
    rotation: 90
    id: tft_ha
    lambda: |-
      it.fill(COLOR_BLACK);
      it.fill(my_red);
      it.line(0, 0, 50, 50);
      it.image(0, 0, id(my_image));

# Define a PWM output on the ESP32
output:
  - platform: ledc
    pin: 27
    id: gpio_27_backlight_pwm

# Define a monochromatic, dimmable light for the backlight
light:
  - platform: monochromatic
    output: gpio_27_backlight_pwm
    name: "Display Backlight"
    id: back_light
    restore_mode: ALWAYS_ON

… but the log still outputs this - is this ok?

[10:31:06][W][component:214]: Component display took a long time for an operation (0.08 s).
[10:31:06][W][component:215]: Components should block for at most 20-30ms.
[10:31:07][W][component:214]: Component display took a long time for an operation (0.08 s).
[10:31:07][W][component:215]: Components should block for at most 20-30ms.
1 Like