diff --git a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h index cde4df87..75cd1984 100644 --- a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h +++ b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h @@ -124,14 +124,14 @@ typedef enum { * 8 = contrast * 9 = power-standby * 10 = wifi -* / +*/ const uint8_t u8x8_4LineDisplay_WLED_icons_1x1[84] U8X8_FONT_SECTION("u8x8_4LineDisplay_WLED_icons_1x1") = "\1\12\1\1\0B\30<<\30B\0~<\30\0~<\30\0p\374\77\216\340\370\360\0 0 ? 0 : 3), u8x8_font_open_iconic_embedded_1x1, true); // power icon - drawGlyph(13, 0, 66 + (nightlightActive?0:4), u8x8_font_open_iconic_weather_1x1, true); // moon icon for nighlight mode + drawGlyph(14, 0, (wificonnected ? 10 : 0), u8x8_4LineDisplay_WLED_icons_1x1, true); // wifi icon + drawGlyph(15, 0, (bri > 0 ? 9 : 0), u8x8_4LineDisplay_WLED_icons_1x1, true); // power icon + drawGlyph(13, 0, (nightlightActive ? 6 : 0), u8x8_4LineDisplay_WLED_icons_1x1, true); // moon icon for nighlight mode } /** @@ -799,45 +799,10 @@ class FourLineDisplayUsermod : public Usermod { // Turn the display back on if (!wakeDisplay()) clear(); // Print the overlay - switch (glyphType) { - case 0: - if (lineHeight == 2) drawGlyph(6, 1, 0x4e, u8x8_font_open_iconic_embedded_4x4, true); - else drawGlyph(7, lineHeight, 0x4e, u8x8_font_open_iconic_embedded_2x2, true); - break; - case 1: - if (lineHeight == 2) drawGlyph(6, 1, 0x45, u8x8_font_open_iconic_weather_4x4, true); - else drawGlyph(7, lineHeight, 0x45, u8x8_font_open_iconic_weather_2x2, true); - break; - case 2: - if (lineHeight == 2) drawGlyph(6, 1, 0x48, u8x8_font_open_iconic_play_4x4, true); - else drawGlyph(7, lineHeight, 0x48, u8x8_font_open_iconic_play_2x2, true); - break; - case 3: - if (lineHeight == 2) drawGlyph(6, 1, 0x4e, u8x8_font_open_iconic_thing_4x4, true); - else drawGlyph(7, lineHeight, 0x4e, u8x8_font_open_iconic_thing_2x2, true); - break; - case 4: - if (lineHeight == 2) drawGlyph(6, 1, 0x48, u8x8_font_open_iconic_thing_4x4, true); - else drawGlyph(7, lineHeight, 0x48, u8x8_font_open_iconic_thing_2x2, true); - break; - case 5: - if (lineHeight == 2) drawGlyph(6, 1, 0x46, u8x8_font_open_iconic_thing_4x4, true); - else drawGlyph(7, lineHeight, 0x46, u8x8_font_open_iconic_thing_2x2, true); - break; - case 6: - if (lineHeight == 2) drawGlyph(6, 1, 0x47, u8x8_font_open_iconic_thing_4x4, true); - else drawGlyph(7, lineHeight, 0x47, u8x8_font_open_iconic_thing_2x2, true); - break; - case 7: - if (lineHeight == 2) drawGlyph(6, 1, 0x4b, u8x8_font_open_iconic_embedded_4x4, true); - else drawGlyph(7, lineHeight, 0x4b, u8x8_font_open_iconic_embedded_2x2, true); - break; - case 8: - if (lineHeight == 2) drawGlyph(6, 1, 0x44, u8x8_font_open_iconic_weather_4x4, true); - else drawGlyph(7, lineHeight, 0x44, u8x8_font_open_iconic_weather_2x2, true); - break; + if (glyphType>0 && glyphType<255) { + if (lineHeight == 2) drawGlyph(5, 0, glyphType, u8x8_4LineDisplay_WLED_icons_6x6, true); + else drawGlyph(7, lineHeight, glyphType, u8x8_4LineDisplay_WLED_icons_2x2, true); } - if (line1) { String buf = line1; center(buf, getCols()); diff --git a/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h b/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h index 8b13485b..f979b8d0 100644 --- a/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h +++ b/usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h @@ -341,14 +341,14 @@ public: bool changedState = true; if (display != nullptr) { switch(newState) { - case 0: changedState = changeState(PSTR("Brightness"), 1, 0, 1); break; - case 1: changedState = changeState(PSTR("Speed"), 1, 4, 2); break; - case 2: changedState = changeState(PSTR("Intensity"), 1, 8, 3); break; - case 3: changedState = changeState(PSTR("Color Palette"), 2, 0, 4); break; - case 4: changedState = changeState(PSTR("Effect"), 3, 0, 5); break; - case 5: changedState = changeState(PSTR("Main Color"), 255, 255, 6); break; - case 6: changedState = changeState(PSTR("Saturation"), 255, 255, 7); break; - case 7: changedState = changeState(PSTR("Preset"), 255, 255, 8); break; + case 0: changedState = changeState(PSTR("Brightness"), 1, 0, 1); break; //1 = sun + case 1: changedState = changeState(PSTR("Speed"), 1, 4, 2); break; //2 = skip forward + case 2: changedState = changeState(PSTR("Intensity"), 1, 8, 3); break; //3 = fire + case 3: changedState = changeState(PSTR("Color Palette"), 2, 0, 4); break; //4 = custom palette + case 4: changedState = changeState(PSTR("Effect"), 3, 0, 5); break; //5 = puzzle piece + case 5: changedState = changeState(PSTR("Main Color"), 255, 255, 7); break; //7 = brush + case 6: changedState = changeState(PSTR("Saturation"), 255, 255, 8); break; //8 = contrast + case 7: changedState = changeState(PSTR("Preset"), 255, 255, 6); break; //6 = moon } } if (changedState) {