diff --git a/wled00/NodeStruct.cpp b/wled00/NodeStruct.cpp deleted file mode 100644 index 88ea8eb..0000000 --- a/wled00/NodeStruct.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "NodeStruct.h" - -String getNodeTypeDisplayString(uint8_t nodeType) { - switch (nodeType) - { - case NODE_TYPE_ID_ESP8266: return F("ESP8266"); - case NODE_TYPE_ID_ESP32: return F("ESP32"); - } - return "Undefined"; -} - -NodeStruct::NodeStruct() : - age(0), nodeType(0), build(0) -{ - for (uint8_t i = 0; i < 4; ++i) { ip[i] = 0; } -} diff --git a/wled00/NodeStruct.h b/wled00/NodeStruct.h index efae4dc..8c19866 100644 --- a/wled00/NodeStruct.h +++ b/wled00/NodeStruct.h @@ -1,5 +1,5 @@ -#ifndef DATASTRUCTS_NODESTRUCT_H -#define DATASTRUCTS_NODESTRUCT_H +#ifndef WLED_NODESTRUCT_H +#define WLED_NODESTRUCT_H /*********************************************************************************************\ * NodeStruct from the ESP Easy project (https://github.com/letscontrolit/ESPEasy) @@ -8,27 +8,27 @@ #include #include - #define NODE_TYPE_ID_UNDEFINED 0 -#define NODE_TYPE_ID_ESP8266 1 -#define NODE_TYPE_ID_ESP32 2 - -String getNodeTypeDisplayString(uint8_t nodeType); +#define NODE_TYPE_ID_ESP8266 8266 +#define NODE_TYPE_ID_ESP32 32 /*********************************************************************************************\ * NodeStruct \*********************************************************************************************/ struct NodeStruct { - NodeStruct(); - String nodeName; IPAddress ip; uint8_t unit; uint8_t age; uint8_t nodeType; uint32_t build; + + NodeStruct() : age(0), nodeType(0), build(0) + { + for (uint8_t i = 0; i < 4; ++i) { ip[i] = 0; } + } }; typedef std::map NodesMap; -#endif // DATASTRUCTS_NODESTRUCT_H +#endif // WLED_NODESTRUCT_H diff --git a/wled00/const.h b/wled00/const.h index a7a155b..4ecd3ec 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -187,4 +187,11 @@ #define JSON_BUFFER_SIZE 16384 #endif +// Maximum size of node map (list of other WLED instances) +#ifdef ESP8266 + #define WLED_MAX_NODES 15 +#else + #define WLED_MAX_NODES 150 +#endif + #endif diff --git a/wled00/data/index.css b/wled00/data/index.css index d697a26..8ea8f00 100644 --- a/wled00/data/index.css +++ b/wled00/data/index.css @@ -90,9 +90,10 @@ button { #namelabel { position: fixed; - bottom: calc(var(--bh) + 5px); + bottom: calc(var(--bh) + 6px); right: 4px; color: var(--c-6); + cursor: pointer; writing-mode: vertical-rl; } @@ -148,10 +149,6 @@ button { padding-bottom: 8px; } -.valtd i { - font-size: small; -} - .slider-icon { transform: translate(6px,3px); @@ -207,10 +204,6 @@ button { background-color: var(--c-tb); } -#btnNodes { - display: none; -} - .tab button { background-color: transparent; float: left; @@ -378,6 +371,14 @@ button { z-index: 2; } +#ndlt { + margin: 12px 0; +} + +.valtd i { + font-size: 14px; +} + #roverstar { position: fixed; top: calc(var(--th) + 5px); @@ -938,8 +939,14 @@ input[type=number]::-webkit-outer-spin-button { } } +@media all and (max-width: 770px) { + #buttonNodes { + display: none; + } +} + @media all and (max-width: 1249px) { - #buttonPcm, #buttonNo { + #buttonPcm { display: none; } } \ No newline at end of file diff --git a/wled00/data/index.htm b/wled00/data/index.htm index e13620a..8e69dc0 100644 --- a/wled00/data/index.htm +++ b/wled00/data/index.htm @@ -23,11 +23,11 @@ - + + - - - + +

Brightness

@@ -67,17 +67,17 @@
-
-
-
-
-
-

-
-
-
-
-
R
+
+
+
+
+
+

+
+
+
+
+
R
@@ -166,12 +166,11 @@ -
-
+