From 0eddc06ca0f38c7ea14b727f19b4943b35392c6b Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 20 Oct 2024 12:25:36 +1100 Subject: auto brightness add option to control brightness automatically from an LDR on pin 34. Note this adds a new value to the globalconf structure, so this breaks the layout of stored settings and will break them all. --- src/index.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/index.h') diff --git a/src/index.h b/src/index.h index 9a8edf3..92109b0 100755 --- a/src/index.h +++ b/src/index.h @@ -217,6 +217,8 @@ const char index_html[] PROGMEM = R"rawliteral(
+ +


@@ -380,6 +382,7 @@ const char index_html[] PROGMEM = R"rawliteral( */ document.getElementById("brightness").value = data.brightness; + document.getElementById("autoBrightness").checked = data.autoBrightness; document.getElementById("cssid").value = data["cssid"]; document.getElementById("cpassword").value = data["cpassword"]; document.getElementById("datep").valueAsDate = new Date(data["datep"]); -- cgit v1.2.3