Added new LVGL display 800x400 basic blue

This commit is contained in:
Sleeper85 committed 2026-02-18 10:36:17 +01:00
1 parent dacf36e280
commit fcad4d6fc1
5 files changed
+1583 -91

No files matched your search

+3 -2
View File
@@ -1,5 +1,5 @@
# Updated : 2026.02.05
# Version : 1.2.5
# Updated : 2026.02.18
# Version : 1.2.6
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -75,6 +75,7 @@ binary_sensor:
name: Inverter communication status
id: inverter_com_status
entity_category: diagnostic
trigger_on_initial_state: true
sensor:
# https://esphome.io/components/sensor/uptime
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.9
# Updated : 2026.02.18
# Version : 1.2.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -116,7 +116,6 @@ output:
# inverted: true # set default to HIGH level
# I/O Expander
# esphome 2024.9.0
# https://esphome.io/components/ch422g.html
ch422g:
- id: ch422g_hub
@@ -138,18 +137,27 @@ touchscreen:
id: my_touchscreen
update_interval: 16ms
interrupt_pin: 4
# esphome 2024.9.0
reset_pin:
ch422g: ch422g_hub
number: 1
on_touch:
- lambda: |-
ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%0d",
touch.x,
touch.y,
touch.x_raw,
touch.y_raw
);
# on_touch:
# - lambda: |-
# ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%0d",
# touch.x,
# touch.y,
# touch.x_raw,
# touch.y_raw
# );
# +--------------------------------------+
# | Backlight |
# +--------------------------------------+
light:
# Backlight
- platform: binary
id: backlight
output: backlight_output
restore_mode: ALWAYS_ON
# +--------------------------------------+
# | Display (LCD 800×480) |
@@ -160,7 +168,7 @@ display:
auto_clear_enabled: false
update_interval: never
color_order: RGB
pclk_frequency: 14MHz # 16
pclk_frequency: 14MHz
dimensions:
width: 800
height: 480
@@ -169,10 +177,9 @@ display:
reset_pin:
ch422g: ch422g_hub
number: 3
# esphome 2024.9.0
enable_pin:
ch422g: ch422g_hub
number: 2
# enable_pin:
# ch422g: ch422g_hub
# number: 2
hsync_pin:
number: 46
ignore_strapping_warning: true
@@ -206,31 +213,3 @@ display:
- 48 #g5
- 47 #g6
- 21 #g7
# +--------------------------------------+
# | Backlight |
# +--------------------------------------+
light:
# Backlight
- platform: binary
id: backlight
output: backlight_output
# font:
# - file: "gfonts://Roboto"
# id: chu_nano
# size: 12
# # LVGL
# lvgl:
# displays:
# - my_display
# touchscreens:
# - my_touchscreen
# pages:
# - id: main_page
# widgets:
# - label:
# align: CENTER
# text: 'YamBMS is running...'
@@ -1,5 +1,5 @@
# Updated : 2026.02.15
# Version : 1.1.9
# Updated : 2026.02.18
# Version : 1.2.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
# YamBMS ( Yet another multi-BMS Merging Solution )
@@ -104,7 +104,6 @@ output:
output: true
inverted: false
# switch:
# - platform: gpio
# name: ${name} USB-CAN selection
@@ -141,14 +140,24 @@ touchscreen:
reset_pin:
ch422g: ch422g_hub
number: 1
on_touch:
- lambda: |-
ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%0d",
touch.x,
touch.y,
touch.x_raw,
touch.y_raw
);
# on_touch:
# - lambda: |-
# ESP_LOGI("cal", "x=%d, y=%d, x_raw=%d, y_raw=%0d",
# touch.x,
# touch.y,
# touch.x_raw,
# touch.y_raw
# );
# +--------------------------------------+
# | Backlight |
# +--------------------------------------+
light:
# Backlight
- platform: binary
id: backlight
output: backlight_output
restore_mode: ALWAYS_ON
# +--------------------------------------+
# | Display (LCD 800×480) |
@@ -159,7 +168,7 @@ display:
auto_clear_enabled: false
update_interval: never
color_order: RGB
pclk_frequency: 14MHz # 16
pclk_frequency: 14MHz
dimensions:
width: 800
height: 480
@@ -168,9 +177,9 @@ display:
reset_pin:
ch422g: ch422g_hub
number: 3
enable_pin:
ch422g: ch422g_hub
number: 2
# enable_pin:
# ch422g: ch422g_hub
# number: 2
hsync_pin:
number: 46
ignore_strapping_warning: true
@@ -204,31 +213,3 @@ display:
- 48 #g5
- 47 #g6
- 21 #g7
# +--------------------------------------+
# | Backlight |
# +--------------------------------------+
light:
# Backlight
- platform: binary
id: backlight
output: backlight_output
# font:
# - file: "gfonts://Roboto"
# id: chu_nano
# size: 12
# LVGL
# lvgl:
# displays:
# - my_display
# touchscreens:
# - my_touchscreen
# pages:
# - id: main_page
# widgets:
# - label:
# align: CENTER
# text: 'YamBMS is running...'
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -1,4 +1,4 @@
# Updated : 2026.02.12
# Updated : 2026.02.18
# Version : 1.7.0
# GitHub : https://github.com/Sleeper85/esphome-yambms
@@ -1102,6 +1102,7 @@ binary_sensor:
name: "${name} ${yambms_name} Discharging Instruction"
id: ${yambms_id}_discharging_instruction
icon: mdi:battery-minus
trigger_on_initial_state: true
# +--------------------------------------+
# | Requested Force Charge |
# +--------------------------------------+