2024-07-30 01:41:34 +02:00
|
|
|
touchscreen:
|
|
|
|
- platform: ft63x6
|
|
|
|
id: tft_touch
|
|
|
|
display: tft_display
|
|
|
|
update_interval: 50ms
|
|
|
|
threshold: 1
|
|
|
|
|
2024-08-06 03:17:29 +02:00
|
|
|
font:
|
|
|
|
- file: "$component_dir/roboto.ttf"
|
|
|
|
id: roboto20
|
|
|
|
size: 20
|
2024-10-31 07:37:32 +01:00
|
|
|
|
2024-08-06 03:17:29 +02:00
|
|
|
- file: "$component_dir/helvetica.ttf"
|
|
|
|
id: helvetica20
|
|
|
|
- file: "$component_dir/roboto.ttf"
|
|
|
|
id: roboto10
|
|
|
|
size: 10
|
|
|
|
bpp: 4
|
2024-08-06 05:56:48 +02:00
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: lvgl
|
|
|
|
id: lvgl_sensor_id
|
|
|
|
name: "LVGL Arc Sensor"
|
|
|
|
widget: lv_arc
|
|
|
|
- platform: lvgl
|
|
|
|
widget: slider_id
|
|
|
|
name: LVGL Slider
|
|
|
|
- platform: lvgl
|
|
|
|
widget: bar_id
|
|
|
|
id: lvgl_bar_sensor
|
|
|
|
name: LVGL Bar
|
|
|
|
- platform: lvgl
|
|
|
|
widget: spinbox_id
|
|
|
|
name: LVGL Spinbox
|
|
|
|
|
|
|
|
number:
|
|
|
|
- platform: lvgl
|
|
|
|
widget: slider_id
|
|
|
|
name: LVGL Slider
|
2024-08-14 04:05:25 +02:00
|
|
|
update_on_release: true
|
2024-08-06 05:56:48 +02:00
|
|
|
- platform: lvgl
|
|
|
|
widget: lv_arc
|
|
|
|
id: lvgl_arc_number
|
|
|
|
name: LVGL Arc
|
|
|
|
- platform: lvgl
|
|
|
|
widget: bar_id
|
|
|
|
id: lvgl_bar_number
|
|
|
|
name: LVGL Bar
|
|
|
|
- platform: lvgl
|
|
|
|
widget: spinbox_id
|
|
|
|
id: lvgl_spinbox_number
|
|
|
|
name: LVGL Spinbox
|
|
|
|
|
|
|
|
light:
|
|
|
|
- platform: lvgl
|
|
|
|
name: LVGL LED
|
|
|
|
id: lv_light
|
2024-10-22 05:03:32 +02:00
|
|
|
widget: lv_led
|
2024-08-06 05:56:48 +02:00
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- platform: lvgl
|
|
|
|
id: lvgl_pressbutton
|
|
|
|
name: Pressbutton
|
|
|
|
widget: spin_up
|
|
|
|
publish_initial_state: true
|
|
|
|
- platform: lvgl
|
|
|
|
name: ButtonMatrix button
|
|
|
|
widget: button_a
|
|
|
|
- platform: lvgl
|
|
|
|
id: switch_d
|
|
|
|
name: Matrix switch D
|
|
|
|
widget: button_d
|
|
|
|
on_click:
|
|
|
|
then:
|
|
|
|
- lvgl.page.previous:
|
|
|
|
animation: move_right
|
|
|
|
time: 600ms
|
|
|
|
- platform: lvgl
|
|
|
|
id: button_checker
|
|
|
|
name: LVGL button
|
|
|
|
widget: spin_up
|
|
|
|
on_state:
|
|
|
|
then:
|
|
|
|
- lvgl.checkbox.update:
|
|
|
|
id: checkbox_id
|
|
|
|
state:
|
|
|
|
checked: !lambda return x;
|
|
|
|
text: Unchecked
|
|
|
|
- platform: lvgl
|
|
|
|
name: LVGL checkbox
|
|
|
|
widget: checkbox_id
|
2024-10-17 22:23:37 +02:00
|
|
|
on_state:
|
|
|
|
then:
|
|
|
|
- lvgl.image.update:
|
|
|
|
id: lv_image
|
|
|
|
src: !lambda if (x) return id(cat_image); else return id(dog_image);
|
2024-08-19 00:43:23 +02:00
|
|
|
|
|
|
|
wifi:
|
|
|
|
ssid: SSID
|
|
|
|
password: PASSWORD123
|
|
|
|
|
|
|
|
time:
|
|
|
|
platform: sntp
|
|
|
|
id: time_id
|
2024-10-09 03:43:28 +02:00
|
|
|
|
|
|
|
text:
|
|
|
|
- id: lvgl_text
|
|
|
|
platform: lvgl
|
|
|
|
widget: hello_label
|
|
|
|
mode: text
|