After a week of trying different configs I finally landed on some mentioning that display driver st7789v is obsolete and need to use mipi_spi. After going through waveshare C++ samples was able to generate proper display config
this is just snippet of my config, but display and WiFi work together and I can control brightness of the display
esphome:
name: ${device_internal_name}
friendly_name: ${device_friendly_name}
on_boot:
then:
- light.turn_on:
id: back_light
brightness: 50%
################################################################################
# ESP32 platform
################################################################################
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
flash_size: 4MB
framework:
type: esp-idf
################################################################################
# SPI
################################################################################
spi:
clk_pin: GPIO7
mosi_pin: GPIO6
miso_pin: GPIO5
################################################################################
# DISPLAY
################################################################################
# Define a PWM output on the ESP32
output:
- platform: ledc
pin: GPIO22
id: backlight_pwm
# Define a monochromatic, dimmable light for the backlight
light:
- platform: monochromatic
output: backlight_pwm
name: "Display Backlight"
id: back_light
restore_mode: ALWAYS_ON
display:
- platform: mipi_spi
model: custom
dc_pin: GPIO15
cs_pin: GPIO14
reset_pin: GPIO21
color_order: bgr
color_depth : 16
pixel_mode: 18bit
invert_colors: true
transform:
swap_xy: true
mirror_x: false
mirror_y: false
dimensions:
width: 320
height: 172
offset_height: 34
offset_width: 0
init_sequence:
# LCD_Driver\Vernon_ST7789T\Vernon_ST7789T.c
- [ 0xb0, 0x00, 0xe8]
- [ 0xB2,0x0c, 0x0c, 0x00, 0x33, 0x33 ]
- [ 0xb7, 0x75 ]
- [ 0xbb, 0x1a ]
- [ 0xc0, 0x80 ]
- [ 0xc2, 0x01, 0xff ]
- [ 0xc3, 0x13 ]
- [ 0xb4, 0x20 ]
- [ 0xc6, 0x0f ]
- [ 0xd0, 0xa4, 0xa1 ]
- [ 0xE0, 0xD0, 0x0D, 0x14, 0x0D, 0x0D, 0x09, 0x38, 0x44, 0x4E, 0x3A, 0x17, 0x18, 0x2F, 0x30 ]
- [ 0xE1, 0xD0, 0x09, 0x0F, 0x08, 0x07, 0x14, 0x37, 0x44, 0x4D, 0x38, 0x15, 0x16, 0x2C, 0x2E ]
- [ 0x21 ]
- [ 0x29 ]
- [ 0x2c ]