Hi there,
Just tinkering and looking to use my XIAO Round Display with HA and an ESP32-C3.
Looking at the forums it appears that the display is actually a GC9A01A and was looking to use the display platform lil9xxx module to display some basic HA sensor values.
I ma not 100% sure I understand the GPIO pins for this, even thought the documentation on the Wiki is as excellent as ever.
MY ESPhome yaml is as follows:
substitutions:
change device name to match your desired name
device_name: “display”
change room name below to the one you want to see in Home Assistant
room: “Office”
change the below to be your WiFi SSID
ssid: “xxxx”
change the below to be your WiFi password
wifi_password: “xxxx”
screenstart: ALWAYS_ON
screenstart: ALWAYS_OFF
Timeout for the screen
screensaver: 1 min
#GPIO pins for the LCD screen
dcpin: GPIO3 #checked
Note - you may see an error on compilation “WARNING GPIO2 is a Strapping PIN and should be avoided” - ignore this as you have no choice
bkpin: GPIO6 #checked
clpin: GPIO9
mopin: GPIO10 #checked
cspin: GPIO1 #checked
GPIO pins for the touch screen
sdapin: GPIO4 #checked
sclpin: GPIO5 #checked
intpin: GPIO7 #checked
esphome:
name: $device_name
esp32:
board: esp32-c3-devkitm-1
variant: esp32c3
framework:
type: esp-idf
Enable logging
logger:
level: DEBUG #makes uart stream available in esphome logstream
logs:
component: ERROR
Enable Home Assistant API
api:
encryption:
key: “xxxx”
ota:
password: “xxxx”
wifi:
ssid: $ssid
password: $wifi_password
use_address: 192.168.8.14
Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: “displayap”
password: $wifi_password
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.8.14
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.8.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.255.0
captive_portal:
web_server:
port: 80
version: 2
include_internal: true
spi:
clk_pin: $clpin
mosi_pin: $mopin
i2c:
sda: $sdapin
scl: $sclpin
display:
- platform: ili9xxx
model: GC9A01A
auto_clear_enabled: false
id: gca901_display
cs_pin: $cspin
dc_pin:
number: $dcpin
update_interval: 1s
lambda:
it.printf(127, 23, id(font1), TextAlign::TOP_RIGHT , “%.1f°”, id(office_co2).state);
sensor:
- platform: homeassistant
id: office_co2
entity_id: sensor.office_co2
internal: True
font:
- file: ‘Oswald-Light.ttf’
id: font1
size: 10
The display backlight is on, but nothing is being shown - the sensor values are registered in the web portal of the ESP32 okay…
Any ideas where to start?
Thanks
Tim