Connecting ST7735 (ILI9xxx) to ESP8266

Hello. Today I received from AliExpress display ST7735/TFT/SPI/128*160

The display has contacts:

VCC
GND
CS
RESET
AO
SDA
SCK
LED

After searching I found that:
LED - LED
SCK - CLK
SDA - mosi
AO - DC
RESET - RESET
CS - CS
GND/VCC - 3.3V

As I understand it, the “ST7735 Display” component is outdated. I started studying the page with “ILI9xxx”. Nothing worked for me. After searching for it a bit, I found this post.

But nothing works for me either. The firmware loads, but then it says that the device is not responding, we will try to connect later. The ESP itself blinks the diode about 4 times, at the same time the screen backlight blinks and that’s it.

display:
  - platform: ili9xxx
    id: my_display
    model: ST7735
    invert_colors: false
    show_test_card: true    
    dc_pin: D5  # (AO)
    reset_pin: D4  # (Reset)
    dimensions:
      height: 128
      width: 160

spi:
  clk_pin: D7 # (CLK)
  mosi_pin: D6 # (SDA)

The display backlight is directly connected to 3.3V.

Firstly I have no idea but have you read this

Esp8266
Mosi D7
CLK D5

I already wrote. The page says that this component is outdated and may be removed.
scr_08_11_2024_15_30_09

I don’t understand, D5 is already occupied by dc_pin :face_with_monocle:

Then make it unoccupied…
Try

cs_pin: D3
dc_pin: D2
reset_pin: D4

I don’t understand anything, are you asking me to select some specific pins? It doesn’t seem to make sense. Here is my connection.

display:
  - platform: ili9xxx
    id: my_display
    model: ST7735
    invert_colors: false
    show_test_card: true    
    dc_pin: D2  # (AO)
    cs_pin: D3 # (CS)
    reset_pin: D4  # (Reset)
    dimensions:
      height: 128
      width: 160

spi:
  clk_pin: D0 # (CLK)
  mosi_pin: D1 # (SDA)

Yes.
spi:
clk_pin: D5 # (CLK)
mosi_pin: D7 # (SDA)

No difference. Also, when starting the ESP, the diode and backlight blink 4-5 times, and the following is written in the log.

WARNING Can't connect to ESPHome API for fancontrol @ 192.168.1.222: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.222', port=6053))]: [Errno 111] Connect call failed ('192.168.1.222', 6053) (SocketAPIError)
INFO Trying to connect to fancontrol @ 192.168.1.222 in the background

keep the clk D5 and mosi D7
and try this on display component.

cs_pin: D8
dc_pin: D3
reset_pin: D4

[/quote]

I don’t know what the problem is, it doesn’t want to work. I even erased all the other code, leaving only the code for the display, but that didn’t help either. In the end, I inserted the old code st7735 and it worked right away, now it looks like I’ll have to wait until the next update removes it and everything breaks.


1 Like

Hello Mark,
I have the same issue as you with the ST7735S Display from Waveshare not working with the ILI9XXXX but with the old ST7735 methode it work… But how long.

Br
Manfred

1 Like

I managed to make it work with ILI9XXXX on esp32-s3, output_power : 8.5 to not have was why fail to connect , here is my code:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  power_save_mode: none
  output_power: 8.5
  manual_ip:
    static_ip: 192.168.x.x
    gateway: 192.168.x.x
    subnet: 255.255.255.0
    dns1: 192.168.x.x

spi:
  clk_pin: GPIO18
  mosi_pin: GPIO11
  miso_pin: GPIO12
  interface: hardware

display:
  - platform: ili9xxx
    model: ST7735
    id: mon_ecran
    cs_pin: GPIO5
    dc_pin: GPIO10
    reset_pin: GPIO4
    rotation: 180
    dimensions:
      width: 128
      height: 160
    color_order: RGB
    invert_colors: false
    update_interval: 1s
    auto_clear_enabled: true
    lambda: |-