diff --git a/CHANGELOG.md b/CHANGELOG.md index ca869ccca..29d8a2c17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. ### Changed - LVGL, prepare for HASPmota theme, change: no-grow when clicked, DPI set to 160 - LVGL Mirroring add checkbox to enable/disable the feature (in the iterim for a better solution) +- Leds Panel add checkbox to enable/disable the feature (in the iterim for a better solution) ### Fixed diff --git a/tasmota/berry/leds_panel/leds_panel.be b/tasmota/berry/leds_panel/leds_panel.be index 81bf5ed03..45e4f29c3 100644 --- a/tasmota/berry/leds_panel/leds_panel.be +++ b/tasmota/berry/leds_panel/leds_panel.be @@ -707,6 +707,7 @@ class leds_panel static var SAMPLING = 100 static var PORT = 8886 # default port 8886 + static var HTML_WIDTH = 290 static var HTML_HEAD1 = "" static var HTML_URL_F = @@ -794,10 +795,10 @@ class leds_panel '' '' static var HTML_CONTENT = - '' + '
' '' '' '' '
' - '' + '' '
' @@ -837,7 +838,7 @@ class leds_panel self.p_leds = self.strip.pixels_buffer(self.p_leds) # update buffer self.h = tasmota.settings.light_pixels_height_1 + 1 self.w = self.strip.pixel_count() / (tasmota.settings.light_pixels_height_1 + 1) - self.cell_size = tasmota.int(330 / self.w, 4, 25) + self.cell_size = tasmota.int(self.HTML_WIDTH / self.w, 4, 25) self.cell_space = (self.cell_size <= 6) ? 1 : 2 end @@ -946,14 +947,46 @@ class leds_panel webserver.content_send( f'' '' - '
 Leds mirroring ' - '' - '
' - '' - '' - '
' + '' + '' + '
' + '' + '' + '' + '' + '
' + '' + '' + '' + '' + '' + ) + webserver.content_send( + '' ) end end diff --git a/tasmota/berry/leds_panel/leds_panel.bec b/tasmota/berry/leds_panel/leds_panel.bec index bc03ef151..8392ac0eb 100644 Binary files a/tasmota/berry/leds_panel/leds_panel.bec and b/tasmota/berry/leds_panel/leds_panel.bec differ diff --git a/tasmota/berry/lvgl_panel/lvgl_panel.be b/tasmota/berry/lvgl_panel/lvgl_panel.be index 5d1e3940c..3f2e93bf2 100644 --- a/tasmota/berry/lvgl_panel/lvgl_panel.be +++ b/tasmota/berry/lvgl_panel/lvgl_panel.be @@ -1024,7 +1024,7 @@ class lvgl_panel ' LVGL screen mirroring ' '' '' - '' '' diff --git a/tasmota/berry/lvgl_panel/lvgl_panel.bec b/tasmota/berry/lvgl_panel/lvgl_panel.bec index bccab3d99..a2b4b42e9 100644 Binary files a/tasmota/berry/lvgl_panel/lvgl_panel.bec and b/tasmota/berry/lvgl_panel/lvgl_panel.bec differ