diff --git a/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h b/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h index c9d9a851..e5e34864 100644 --- a/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h +++ b/usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h @@ -231,6 +231,8 @@ class FourLineDisplayUsermod : public Usermod { * or if forceRedraw). */ void redraw(bool forceRedraw) { + static bool showName = false; + if (type==NONE) return; if (overlayUntil > 0) { if (millis() >= overlayUntil) { @@ -274,6 +276,15 @@ class FourLineDisplayUsermod : public Usermod { } else if (displayTurnedOff && clockMode) { showTime(); } else if ((millis() - lastRedraw)/1000%3 == 0) { + // alternate IP address and server name + String serverName = serverDescription; + if (serverName != String("WLED")) { + showName = !showName; + for (uint8_t i=serverName.length(); i 1 ? getCols() - 2 : 0); drawString(1, 0, ssidString.c_str()); // Print `~` char to indicate that SSID is longer, than our display @@ -331,7 +342,7 @@ class FourLineDisplayUsermod : public Usermod { } // Second row with IP or Psssword - drawGlyph(0, lineHeight, 68, u8x8_font_open_iconic_embedded_1x1); // home icon + drawGlyph(0, lineHeight, 68, u8x8_font_open_iconic_embedded_1x1); // wifi icon // Print password in AP mode and if led is OFF. if (apActive && bri == 0) { drawString(1, lineHeight, apPass); diff --git a/wled00/wled.h b/wled00/wled.h index b69f0d6c..d753f144 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2106072 +#define VERSION 2106131 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG