107 lines
3.4 KiB
YAML
107 lines
3.4 KiB
YAML
substitutions:
|
||
device_name: "display4848"
|
||
friendly_name: "display lgvl"
|
||
comment: "esp32-s3"
|
||
location: "Woonkamer"
|
||
board: "esp32-s3-devkitc-1"
|
||
variant: "esp32s3"
|
||
flashsize: "16MB"
|
||
framework: "esp-idf"
|
||
api_password: !secret display_api
|
||
ota_password: !secret ota_password
|
||
wifi_ssid: !secret wifi_ssid
|
||
wifi_password: !secret wifi_password
|
||
wifi_ssid2: !secret wifi_ssid2
|
||
wifi_password2: !secret wifi_password2
|
||
|
||
|
||
packages:
|
||
board: !include boards/esp32-variant.yaml
|
||
psram: !include boards/psram.yaml
|
||
common: !include common/common.yaml
|
||
connected: !include common/wifi_nosens.yaml
|
||
display: !include display/guition480480.yaml
|
||
logger: !include templates/logger.yaml
|
||
#widgets and pages
|
||
home: !include widgets/home/home.yaml
|
||
lights_config: !include widgets/light/lights_config.yaml
|
||
devices: !include widgets/devices.yaml
|
||
settings: !include widgets/settings.yaml
|
||
menu_controls_main: !include widgets/menu_controls_main.yaml
|
||
loading_page: !include widgets/loading_page.yaml
|
||
|
||
|
||
image: !include widgets/image.yaml
|
||
font: !include widgets/fonts.yaml
|
||
color: !include widgets/colors.yaml
|
||
|
||
|
||
http_request:
|
||
verify_ssl: false
|
||
|
||
external_components:
|
||
- source: github://pr#9972
|
||
components: [mapping]
|
||
refresh: 1h
|
||
|
||
esphome:
|
||
# name: display
|
||
# friendly_name: display
|
||
includes:
|
||
- <sstream>
|
||
- <algorithm>
|
||
platformio_options:
|
||
board_build.flash_mode: dio
|
||
|
||
lvgl:
|
||
color_depth: 16
|
||
byte_order: big_endian
|
||
displays: my_display
|
||
touchscreens:
|
||
- touchscreen_id: my_touchscreen
|
||
long_press_time: 5000ms
|
||
long_press_repeat_time: 400ms
|
||
page_wrap: false
|
||
|
||
|
||
|
||
|
||
# interval:
|
||
# - interval: 60s
|
||
# then:
|
||
# - lambda: |-
|
||
# // Общая информация о памяти
|
||
# ESP_LOGI("memory", "Free heap: %d bytes", esp_get_free_heap_size());
|
||
# ESP_LOGI("memory", "Free internal heap: %d bytes", esp_get_free_internal_heap_size());
|
||
# ESP_LOGI("memory", "Min free heap: %d bytes", esp_get_minimum_free_heap_size());
|
||
|
||
# // Детальная статистика кучи
|
||
# multi_heap_info_t info;
|
||
# heap_caps_get_info(&info, MALLOC_CAP_INTERNAL);
|
||
# ESP_LOGI("memory", "SRAM total: %d, free: %d, largest_free: %d",
|
||
# info.total_free_bytes + info.total_allocated_bytes,
|
||
# info.total_free_bytes,
|
||
# info.largest_free_block);
|
||
|
||
# // Статистика по PSRAM
|
||
# heap_caps_get_info(&info, MALLOC_CAP_SPIRAM);
|
||
# ESP_LOGI("memory", "PSRAM total: %d, free: %d, largest_free: %d",
|
||
# info.total_free_bytes + info.total_allocated_bytes,
|
||
# info.total_free_bytes,
|
||
# info.largest_free_block);
|
||
|
||
# - lambda: |-
|
||
# ESP_LOGI("stack", "Main task free: %d bytes",
|
||
# uxTaskGetStackHighWaterMark(xTaskGetHandle("loopTask")));
|
||
# ESP_LOGI("stack", "System event free: %d bytes",
|
||
# uxTaskGetStackHighWaterMark(xTaskGetHandle("sys_evt")));
|
||
# ESP_LOGI("stack", "Timer task free: %d bytes",
|
||
# uxTaskGetStackHighWaterMark(xTaskGetHandle("esp_timer")));
|
||
|
||
# - lambda: |-
|
||
# char* buf = (char*)malloc(1024);
|
||
# if (buf) {
|
||
# vTaskList(buf);
|
||
# ESP_LOGI("stack", "\nTask Name\tState\tPrio\tStack\tNum\n%s", buf);
|
||
# free(buf);
|
||
# } |