Hi!
I’ve been trying this for weeks now (on the weekends, I do have a day job ) and can’t seem to get anywhere.
I have a number of Feather ESP32 V2s running various ESPhome tasks strewn about the house. So, I know that they work well with ESPhome.
I’d love to use the FeatherWing TFT as a display/control interface for Home Assistant.
I believe this should work, as the HX8357 chipset is supported by ESPhome’s display module, no?
This is what I’ve come up with through furious googling and experimentation:
esphome:
name: featherwingtft
friendly_name: FeatherWingTFT
esp32:
board: esp32dev
framework:
type: arduino
logger:
api:
encryption:
key: "..."
ota:
- platform: esphome
password: "..."
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Featherwingtft Fallback Hotspot"
password: "6hRYLr7djERW"
captive_portal:
psram:
spi:
clk_pin: GPIO05
mosi_pin: GPIO19
miso_pin: GPIO21
time:
- platform: homeassistant
timezone: UTC-01:00 # Change your timezone here
id: esptime
font:
- file:
type: gfonts
family: Lato
weight: 400
id: lato
size: 20
- file:
type: gfonts
family: Lato
weight: 900
id: latoblack
size: 30
- file:
type: gfonts
family: Lato
weight: 900
id: latoblackheading1
size: 50
color:
- id: RED
red: 100%
green: 0%
blue: 0%
- id: GREEN
red: 0%
green: 100%
blue: 0%
- id: BLUE
red: 0%
green: 0%
blue: 100%
- id: YELLOW
red: 100%
green: 100%
blue: 0%
- id: WHITE
red: 100%
green: 100%
blue: 100%
- id: ORANGE
red: 100%
green: 67%
blue: 20%
display:
- platform: ili9xxx
model: ili9341
dc_pin: GPIO10
# reset_pin: GPIO00
invert_colors: false
update_interval: 1s
id: my_display
pages: # Define the pages
- id: showtime
lambda: |-
it.strftime(45, 20, id(latoblack), "%d-%m-%Y", id(esptime).now());
it.strftime(25, 55, id(latoblackheading1), "%H:%M:%S", id(esptime).now());
The output is:
[17:29:11][I][logger:171]: Log initialized
[17:29:11][C][safe_mode:079]: There have been 8 suspected unsuccessful boot attempts
[17:29:11][D][esp32.preferences:114]: Saving 1 preferences to flash...
[17:29:11][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[17:29:11][I][app:029]: Running through setup()...
[17:29:11][D][spi:039]: Setting up SPI bus...
[17:29:11][D][ili9xxx:034]: Setting up ILI9xxx
[17:29:11][D][spi_device:381]: mode 0, data_rate 40000kHz
[17:29:12][D][ili9xxx:030]: Wrote MADCTL 0x48
[17:29:12][C][wifi:048]: Setting up WiFi...
[17:29:12][C][wifi:061]: Starting WiFi...
[17:29:12][C][wifi:062]: Local MAC: E8:9F:6D:30:E2:84
[17:29:12][D][wifi:482]: Starting scan...
[17:29:12]Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
[17:29:12]
[17:29:12]Core 1 register dump:
[17:29:12]PC : 0x40092db5 PS : 0x00060930 A0 : 0x80093642 A1 : 0x3ffb2490
[17:29:12]A2 : 0xbbbbbbbb A3 : 0xffffffff A4 : 0x00000000 A5 : 0x00000001
[17:29:12]A6 : 0x00060320 A7 : 0x00000001 A8 : 0x00000006 A9 : 0x0000000b
[17:29:12]A10 : 0xbbbbbbf7 A11 : 0x0002580c A12 : 0x0000000e A13 : 0x3ffcedbc
[17:29:12]A14 : 0x007ba744 A15 : 0x003fffff SAR : 0x0000000c EXCCAUSE: 0x0000001c
[17:29:12]EXCVADDR: 0xbbbbbbfb LBEG : 0x40085985 LEND : 0x4008598d LCOUNT : 0x00000027
[17:29:12]
[17:29:12]
[17:29:12]Backtrace:0x40092db2:0x3ffb24900x4009363f:0x3ffb24b0 0x400938c0:0x3ffb24d0 0x40083e0a:0x3ffb24f0 0x40083e1d:0x3ffb2520 0x400d8341:0x3ffb2540 0x400d9de0:0x3ffb2560 0x400d9e0f:0x3ffb2580 0x400d9f45:0x3ffb25a0 0x400d7d2a:0x3ffb25c0 0x400d81f1:0x3ffb25e0 0x400da455:0x3ffb2600 0x40172e5d:0x3ffb2620 0x400e1f23:0x3ffb2640 0x400e0df2:0x3ffb2690 0x400e2a46:0x3ffb26c0 0x400eebc6:0x3ffb2820
[17:29:12]
[17:29:12]
[17:29:12]
[17:29:12]
[17:29:12]ELF file SHA256: 0000000000000000
[17:29:12]
[17:29:12]Rebooting...
[17:29:12]ets Jul 29 2019 12:21:46
[17:29:12]
[17:29:12]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[17:29:12]configsip: 271414342, SPIWP:0xee
[17:29:12]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[17:29:12]mode:DIO, clock div:2
[17:29:12]load:0x3fff0030,len:1184
[17:29:12]load:0x40078000,len:13132
[17:29:12]load:0x40080400,len:3036
[17:29:12]entry 0x400805e4
Am I doing something wrong?
Best regards,
Andrew