-
Notifications
You must be signed in to change notification settings - Fork 0
/
esphome-tdisplay-s3-lvgl.yaml
91 lines (78 loc) · 2.16 KB
/
esphome-tdisplay-s3-lvgl.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
esphome:
name: esphome-tdisplay-s3-lvgl
# Include customized header files for TFT_eSPI, LVGL components and the demo UI
includes:
- tdisplays3/tft_espi_display.h
- tdisplays3/Free_Fonts.h
- esphome-lvgl/bootlogo.h
- esphome-lvgl/lv_conf.h
- esphome-lvgl/LvglComponent.h
- esphome-lvgl/LvglCheckbox.h
- esphome-lvgl/LvglSwitch.h
- esphome-lvgl/LvglToggleButton.h
# Dowload extra libraries for TFT_eSPI, LVGL and the demo UI
libraries:
- SPI
- FS
- SPIFFS
- tdisplays3=https://github.com/landonr/lilygo-tdisplays3-esphome.git
#- esphome-lvgl=file:///config/esphome/esphome-lvgl/
- esphome-lvgl=https://github.com/landonr/tdisplays3-esphome-lvgl.git
- lvgl/lvgl
- lvgl/lv_examples
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
# TTGO T-Display S3, 170(h)*320(w)
framework:
type: arduino
version: 2.0.3
platform_version: 5.0.0
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "6ada29f6f41ce1685d29d406efd25fa4"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "S3 Fallback Hotspot"
password: "zQ9tuPKIfFMu"
web_server:
port: 80
time:
- platform: homeassistant
id: ha_time
custom_component:
#- lambda: |-
# auto tftespi_component = new TFTeSPIComponent();
# return {tftespi_component};
- lambda: |-
auto lvgl_component = new LvglComponent();
return {lvgl_component};
# Example configuration entry
switch:
- platform: custom
lambda: |-
auto my_switch1 = new LvglSwitch(50,50,80,45);
App.register_component(my_switch1);
return {my_switch1};
switches:
name: "My Switch 1"
- platform: custom
lambda: |-
auto my_switch2 = new LvglCheckbox(50,100,150,30);
App.register_component(my_switch2);
return {my_switch2};
switches:
name: "My Switch 2"
- platform: custom
lambda: |-
auto my_switch3 = new LvglToggleButton(50,200,150,45);
App.register_component(my_switch3);
return {my_switch3};
switches:
name: "My Switch 3"