Thank you for pointing to the github. Unfortunately i still do not get it to work. Maybe you know what i am doing wrong ?
ESPHome Console error:
[23:53:16][W][component:204]: Component ili9xxx.display took a long time for an operation (0.13 s). [23:53:16][W][component:205]: Components should block for at most 20-30ms.
font:
- file: "gfonts://Roboto"
id: my_font
size: 20
color:
- id: my_red
red: 100%
spi:
clk_pin: 18 #display SCK/touch T_CLK
mosi_pin: 23 #display SDI(MOSI)/touch T_DIN
miso_pin: 19 #touch T_DO
touchscreen:
platform: xpt2046
id: my_touchscreen
cs_pin: 17 #touch T_CS
interrupt_pin: 16 #touch T_IRQ
update_interval: 50ms
report_interval: 1s
threshold: 400
calibration_x_min: 283
calibration_x_max: 3776
calibration_y_min: 3870
calibration_y_max: 392
swap_x_y: False
display:
- platform: ili9xxx
model: TFT 2.4
cs_pin: 13 #display CS
dc_pin: 27 #display DC
reset_pin: 33 #display RESET
rotation: 90
id: tft_ha_test
lambda: |-
it.fill(Color::BLACK);
it.print(0, 0, id(my_font), id(my_red), TextAlign::TOP_LEFT, "Hello World!");
# Define a PWM output on the ESP32
output:
- platform: ledc
pin: 32 #display LED
id: gpio_32_backlight_pwm
# Define a monochromatic, dimmable light for the backlight
light:
- platform: monochromatic
output: gpio_32_backlight_pwm
name: "Display HA test podsvícení"
id: back_light
restore_mode: ALWAYS_ON
ignore the wires on this picture, but it folows these pins

