Get sensor status on TFT

Hello everyone,
I am totally new beginner with ESP and MQTT. I have been running with Home Assistant for a couple of years now and thought I would try to make something new smart …
I have purchased the following components that I would use to be able to display a sensor status on from Home Assistant.

I have tried as a test to paste the following to my .yaml file but getting the message “Platform not found: 'display.ili9341”

esphome:
  name: test_2
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "WIFI"
  password: "PASS"


mqtt:
  broker: 'IP'
  username: 'user'
  password: 'password'
  
captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: password"
ota:
  password: "password"
  
spi:
   clk_pin: 20
   mosi_pin: 18
   miso_pin: 19

display:
   - platform: ili9341
     model: TFT 2.4
     cs_pin: 2
     dc_pin: 3
     reset_pin: 1
     rotation: 0
     lambda: | -
       it.print ("Hello World!");


Hope some of you can guide me the right way, thought I have searched the internet for help.

There is a good example here https://esphome.io/cookbook/display_time_temp_oled.html

When I try to insert values for spi:
I get the error invalid pin number for;
clk_pin: 20
mosi_pin: 18
miso_pin: 19

spi:
   clk_pin: 20
   mosi_pin: 18
   miso_pin: 19

display:
   - platform: ili9341
     model: TFT 2.4
     cs_pin: 2
     dc_pin: 3
     reset_pin: 1
     rotation: 0
     lambda: | -
       it.print ("Hello World!");

Did you make it work?
I just tried ESP32S and TFT display ILI9341 and it works very well.

Hi pepe59,
No I did not get it to work… Could be the solution i will try bye a ESP32S and see if i can get it to work.

Thank you.

Looking through this thread you appear to be using pins, eg 18,19,20, that do not exist on an esp8266. See https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/

If you configure the led pin, an entity is created to control the brightness and turn off the TFT backlight.
Tried works well.