Struggeling with this setup. With some help managed to get it running, but nothing showing on display, only backlight… Anyone with a working setup?
Display (NO Touch): https://www.aliexpress.com/item/1005006258575617.html?gatewayAdapt=ita2glo
ESP32 (Usb C): https://www.aliexpress.com/item/1005010611574417.html
Code:
esphome:
name: jarvis-skjerm
friendly_name: Jarvis Skjerm
esp32:
board: esp32dev
framework:
type: arduino
safe_mode:
num_attempts: 15
wifi:
ssid: "XXX"
password: "XXX"
api:
encryption:
key: "XXXX"
ota:
- platform: esphome
logger:
color:
- id: my_black
red: 0%
green: 0%
blue: 0%
- id: my_white
red: 100%
green: 100%
blue: 100%
output:
- platform: ledc
pin: GPIO32
id: backlight_pwm
light:
- platform: monochromatic
output: backlight_pwm
name: "Jarvis Skjermlys"
id: display_backlight
restore_mode: ALWAYS_ON
spi:
clk_pin: GPIO14
mosi_pin: GPIO13
miso_pin: GPIO12
font:
- file: "gfonts://Roboto"
id: font_standard
size: 25
display:
- platform: st7789v
model: custom
height: 320
width: 240
offset_height: 0
offset_width: 0
cs_pin: GPIO15
dc_pin: GPIO2
reset_pin: GPIO4
eightbitcolor: true
rotation: 90
id: my_display
lambda: |-
it.fill(id(my_white));
it.print(160, 120, id(font_standard), id(my_black), TextAlign::CENTER, "JARVIS V1.0");
Pins used:
VCC VIN
GND GND
CS GPIO 15
RESET GPIO 4
DC GPIO 2
SDI (MOSI) GPIO 13
SCK (CLK) GPIO 14
SDO (MISO) GPIO 12
LED GPIO 32