mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 03:24:54 +01:00
ef6ccddc0d
Some checks failed
CI / Run script/ci-custom (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Create common environment (push) Waiting to run
CI / Check black (push) Blocked by required conditions
CI / Check flake8 (push) Blocked by required conditions
CI / Run pytest (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / Component test (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
CI / CI Status (push) Blocked by required conditions
YAML lint / yamllint (push) Has been cancelled
148 lines
3 KiB
YAML
148 lines
3 KiB
YAML
touchscreen:
|
|
- platform: ft63x6
|
|
id: tft_touch
|
|
display: tft_display
|
|
update_interval: 50ms
|
|
threshold: 1
|
|
calibration:
|
|
x_max: 240
|
|
y_max: 320
|
|
|
|
font:
|
|
- file: "$component_dir/roboto.ttf"
|
|
id: roboto20
|
|
size: 20
|
|
extras:
|
|
- file: '$component_dir/materialdesignicons-webfont.ttf'
|
|
glyphs: [
|
|
"\U000F004B",
|
|
"\U0000f0ed",
|
|
"\U000F006E",
|
|
"\U000F012C",
|
|
"\U000F179B",
|
|
"\U000F0748",
|
|
"\U000F1A1B",
|
|
"\U000F02DC",
|
|
"\U000F0A02",
|
|
"\U000F035F",
|
|
"\U000F0156",
|
|
"\U000F0C5F",
|
|
"\U000f0084",
|
|
"\U000f0091",
|
|
]
|
|
- file: "$component_dir/helvetica.ttf"
|
|
id: helvetica20
|
|
- file: "$component_dir/roboto.ttf"
|
|
id: roboto10
|
|
size: 10
|
|
bpp: 4
|
|
extras:
|
|
- file: '$component_dir/materialdesignicons-webfont.ttf'
|
|
glyphs: [
|
|
"\U000F004B",
|
|
"\U0000f0ed",
|
|
"\U000F006E",
|
|
"\U000F012C",
|
|
"\U000F179B",
|
|
"\U000F0748",
|
|
"\U000F1A1B",
|
|
"\U000F02DC",
|
|
"\U000F0A02",
|
|
"\U000F035F",
|
|
"\U000F0156",
|
|
"\U000F0C5F",
|
|
"\U000f0084",
|
|
"\U000f0091",
|
|
]
|
|
|
|
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
|
|
update_on_release: true
|
|
- 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
|
|
led: lv_led
|
|
|
|
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
|
|
on_state:
|
|
then:
|
|
- lvgl.image.update:
|
|
id: lv_image
|
|
src: !lambda if (x) return id(cat_image); else return id(dog_image);
|
|
|
|
wifi:
|
|
ssid: SSID
|
|
password: PASSWORD123
|
|
|
|
time:
|
|
platform: sntp
|
|
id: time_id
|
|
|
|
text:
|
|
- id: lvgl_text
|
|
platform: lvgl
|
|
widget: hello_label
|
|
mode: text
|