ESP8266 with ili9341

Hello dear community,

I am currently trying to control a display (https://de.aliexpress.com/item/1005005933480548.html?spm=a2g0o.order_list.order_list_main.51.1e485c5fIVR1ah&gatewayAdapt=glo2deu) with a Wemos D1 mimi. In my first attempt, I just want to draw a diagonal line (to test whether it works at all). Unfortunately, the display only turns white, without a line. Later on, I would also like to use the touch function (which is why I have connected it). Can anyone tell me what I am doing wrong?

The pin assignment is as follows:
D1 mini 5V → VCC, Reset, LED
D1 mini G → GND
D1 mini D4 → DC
D1 mini D2 → T_CS
D1 mini D1 → T_IRQ
D1 mini D8 → CS
D1 mini D7 → SDI mosi, T_DIN
D1 mini D6 → SDO miso, T_DO
D1 mini D5 → SCK, T_CLK

My code for the ESP8266 is as follows:

esphome:
  name: esphome-esp8266
  friendly_name: ESP8266
  
esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: <secret>

ota:
  - platform: esphome
    password: !secret ota_password

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-D58C08"
    password: <secret>

captive_portal:
  
display:
  - platform: ili9xxx
    model: tft_2.4
    cs_pin: GPIO15
    dc_pin: GPIO2
    rotation: 270
    lambda: |-
      it.line(0, 0, 80, 80);

spi:
  clk_pin: GPIO14
  mosi_pin: GPIO13
  miso_pin: GPIO12

Please help me, I’m getting desperate.

If you are desperate for help, post a log.

Also, this screen is not suitable for esp8266. Did you read the docs?

Thank you for your answer. I followed this guide (https://www.instructables.com/ILI9341-Touch-Shield-for-Wemos-D1-Mini/) and assumed that it must work. If you say that the ESP8266 is not suitable, I will try again with an ESP32. There are also some instructions for this, which didn’t work either. That’s why I wanted to try the ESP8266 first, as I have a little experience with it. But well, I will set up the test again with the ESP32 and then get back to you.

So the answer is no, you didn’t read the docs. ILI9xxx TFT LCD Series — ESPHome

The ILI9xxx display platform allows you to use ILI9341 (datasheet, Aliexpress) and other displays from the same chip family with ESPHome. As this is a somewhat higher resolution display and requires additional pins beyond the basic SPI connections, and a reasonable amount of RAM, it is not well suited for the ESP8266.

The guide you followed does not use esphome. I am not saying it is impossible to use esp8266, but at the cost difference, why make problems for yourself.