WT32-ETH01 SPI display wiring

Hello,
I have a wt32-eth01 microcontroller that I am planning to use as a thermostat in my future home. I managed to make it work with a bme280 through i2c and climate control module.
I would like to add a display to it, but I cannot find any information on how to wire it up to this board.
The screen I am trying to use is a 1.8 inch TFT display with ST7735 driver that support SPI.

I would appreciate some help wiring this thing up. I thought it would be easier to find a pinout diagram that tells me which are the spi pins…


Those have weird pin labelling.

From what I can gather, for SPI:

SCK = SPI CLK
SDA = SPI MOSI

Just use the example pins shown in the docs. MISO is not required.

For the display:

RESET = reset_pin:
CS = cs:
A0 = dc:

Again just pick some suitable pins or use the ones in the example.

Lastly configure the LED as PWM light - that way you can adjust the brightness. This is an example from one of my displays - pick a suitable pin:

# backlight pin as PWM GPIO32
output:
  - platform: ledc
    pin: 32
    id: gpio_32_backlight_pwm

# define as light
light:
  - platform: monochromatic
    output: gpio_32_backlight_pwm
    id: back_light
    restore_mode: ALWAYS_ON

Thank you for the help! I managed to make it work.
The extra light dimmer is really usefull, I appreciate it a lot :slight_smile:

I would just use I2C for both the bmp280 and your display. Just make sure you use a different address for each. They both can use the same pins, which normally are 22 for sck and 21 for
sda. Some boards differ. The address for the bmp is 0x76 and many displays use 0x3C. Check your documentation for your display board. There are many cheap generic OLED boards you can get for about $3.00. I hope this helps.