Does any one have a working yaml file to display text on a LilyGo T-Display S3 Pro?
I believe the main issue that I am having is the correct gpio pin assignments, I have tried using the pin numbers provided by the LilyGo store but no luck. Code that I am trying to display works on the Amoled and a few other displays but not the S3 pro.
# Uses the following devices
# - Lilygo T=Display s3-Pro
# - Blood_Sugar sensor from Home Assistant NightScout Integration
# touchscreen:
# platform: CST226
# display:
# - platform: ili9xxx
# model: ILI9341
substitutions:
disp_name: CGM Display
esphome:
name: cgm-t-display-s3-pro
friendly_name: cgm-t-display-s3-pro
esp32:
board: esp32-s3-devkitc-1
framework:
type: arduino
logger:
api:
ota:
web_server:
port: 80
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.0.193
gateway: 192.168.0.1
subnet: 255.255.255.0
ap:
ssid: "CGM Display Fallback"
spi:
miso_pin: 8
mosi_pin: 17
clk_pin: 18
color:
- id: my_black
red: 0%
green: 0%
blue: 0%
- id: my_red
hex: fc0000
- id: my_green
hex: 00fc4c
- id: my_yellow
hex: e0e637
- id: my_orange
hex: ff7728
- id: my_white
hex: ffffff
font:
- file: 'fonts/arialbd.ttf'
id: font1
size: 95
- file: 'fonts/roboto.ttf'
id: font2
size: 45
display:
- platform: ili9xxx
model: ili9341
color_order: rgb
data_rate: 80MHz
cs_pin: 6
reset_pin: 47
dc_pin: 9
dimensions:
height: 480
width: 222
offset_height: 40
offset_width: 52
invert_colors: false
id: my_display
lambda: |-
it.fill(id(my_red));
it.strftime(10, 111, id(font2), id(my_white), TextAlign::BOTTOM_LEFT, "%I : %M %p", id(esptime).now());
switch:
- platform: restart
name: ${disp_name} Restart
time:
- platform: homeassistant
id: esptime
output:
- platform: ledc
pin: 48
id: gpio_48_backlight_pwm
light:
- platform: monochromatic
output: gpio_48_backlight_pwm
name: "Display Backlight"
id: back_light
restore_mode: ALWAYS_ON
# sensor:
# - platform: homeassistant
# id: blood_sugar
# entity_id: sensor.blood_sugar
# accuracy_decimals: 0
# unit_of_measurement: mg/dL
# - platform: wifi_signal
# name: ${disp_name} WiFi Status
# update_interval: 10s
captive_portal:
Thanks for any help or suggestions