Hallöchen und guten Abend,
ich will mit HA ESPHome ein ESP32-S3-Touch-LCD-4.3 von waveshare.com ansteuern und einfach nur einen Text ausgeben.
(https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-4.3)
Mit meinem kleinen OLED Display schaffe ich das wie folgt:
esphome:
name: esp-display
friendly_name: ESP_Display
esp32:
board: esp32dev
framework:
type: arduino
.
.
.
.
i2c:
sda: GPIO21
scl: GPIO22
font:
- file: "https://github.com/IdreesInc/Monocraft/releases/download/v3.0/Monocraft.ttf"
id: my_font_14
size: 14
- file: "https://github.com/IdreesInc/Monocraft/releases/download/v3.0/Monocraft.ttf"
id: my_font_10
size: 10
sensor:
- platform: homeassistant
entity_id: sensor.solargesamtinwatt
id: ha_solargesamt
- platform: homeassistant
entity_id: sensor.strom_eg_aktuell
id: ha_strom_eg_aktuell
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.printf(0, 0, id(my_font_10), "Solarerzeugung:");
it.printf(25, 11, id(my_font_14), "%.1f W", id(ha_solargesamt).state);
it.printf(0, 29, id(my_font_10), "Poweropti:");
it.printf(25, 42, id(my_font_14), "%.1f W", id(ha_strom_eg_aktuell).state);
Aber auf das LCD bekomme ich keinerlei Text.
Nicht mal ein “hello world”.
Kann mir einer helfen?
Aktuell habe ich folgendes, aber auch das zeigt null an:
esphome:
name: esg
friendly_name: esg
esp32:
board: esp32s3box
framework:
type: esp-idf
.
.
.
captive_portal:
spi:
clk_pin: GPIO36
mosi_pin: GPIO6
i2c:
sda: GPIO08
scl: GPIO09
#light:
# - platform: monochromatic
# output: lcd_backlight
# name: "LCD Backlight"
# restore_mode: ALWAYS_ON
font:
- file: "https://github.com/IdreesInc/Monocraft/releases/download/v3.0/Monocraft.ttf"
id: my_font_14
size: 14
- file: "https://github.com/IdreesInc/Monocraft/releases/download/v3.0/Monocraft.ttf"
id: my_font_10
size: 10
sensor:
- platform: homeassistant
entity_id: sensor.solargesamtinwatt
id: ha_solargesamt
- platform: homeassistant
entity_id: sensor.strom_eg_aktuell
id: ha_strom_eg_aktuell
display:
- platform: rpi_dpi_rgb
color_order: RGB
pclk_frequency: 16MHz
dimensions:
width: 800
height: 480
de_pin:
number: 5
hsync_pin:
number: 46
ignore_strapping_warning: true
vsync_pin:
number: 3
ignore_strapping_warning: true
pclk_pin: GPIO37
hsync_back_porch: 30
hsync_front_porch: 210
hsync_pulse_width: 30
vsync_back_porch: 4
vsync_front_porch: 4
vsync_pulse_width: 4
data_pins:
red:
- 1 #r3
- 2 #r4
- 42 #r5
- 41 #r6
- 40 #r7
blue:
- 14 #b3
- 38 #b4
- 18 #b5
- 17 #b6
- 10 #b7
green:
- 39 #g2
- 0 #g3
- 45 #g4
- 48 #g5
- 47 #g6
- 21 #g7
lambda: |-
it.printf(0, 0, id(my_font_10), "Solarerzeugung:");
it.printf(25, 11, id(my_font_14), "%.1f W", id(ha_solargesamt).state);
it.printf(0, 29, id(my_font_10), "Poweropti:");
it.printf(25, 42, id(my_font_14), "%.1f W", id(ha_strom_eg_aktuell).state);
by HarryP: Zusammenführung Doppelpost (bitte “bearbeiten” Funktion nutzen)