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.