Net Debug = Net print and tablet pc mode on 1024

This commit is contained in:
Ewoud
2023-03-27 14:47:13 +02:00
parent d74f41d680
commit df4be5550f
8 changed files with 1664 additions and 1664 deletions

View File

@@ -258,7 +258,7 @@ CRGBPalette16 &Segment::loadPalette(CRGBPalette16 &targetPalette, uint8_t pal) {
break;} break;}
case 73: {//periodically replace palette with a random one. Transition palette change in 500ms case 73: {//periodically replace palette with a random one. Transition palette change in 500ms
uint32_t timeSinceLastChange = millis() - _lastPaletteChange; uint32_t timeSinceLastChange = millis() - _lastPaletteChange;
if (timeSinceLastChange > 5000 /*+ ((uint32_t)(255-intensity))*100*/) { if (timeSinceLastChange > randomPaletteChangeTime * 1000U) {
prevRandomPalette = randomPalette; prevRandomPalette = randomPalette;
randomPalette = CRGBPalette16( randomPalette = CRGBPalette16(
CHSV(random8(), random8(160, 255), random8(128, 255)), CHSV(random8(), random8(160, 255), random8(128, 255)),

View File

@@ -1517,7 +1517,7 @@ TD .checkmark, TD .radiomark {
} }
} }
@media all and (max-width: 798px) { @media all and (max-width: 1024px) {
#buttonPcm { #buttonPcm {
display: none; display: none;
} }

View File

@@ -675,7 +675,7 @@ function populateInfo(i)
cn += `v${i.ver} &nbsp;<i>"${vcn}"</i><p>(WLEDMM_${i.ver} ${i.rel}.bin)</p><p><em>build ${i.vid}</em></p><table> cn += `v${i.ver} &nbsp;<i>"${vcn}"</i><p>(WLEDMM_${i.ver} ${i.rel}.bin)</p><p><em>build ${i.vid}</em></p><table>
${urows} ${urows}
${urows===""?'':'<tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:Seagreen"></td></tr>'} ${urows===""?'':'<tr><td colspan=2><hr style="height:1px;border-width:0;color:SeaGreen;background-color:Seagreen"></td></tr>'}
${i.opt&0x100?inforow("Net Serial ☾","<button class=\"btn btn-xs\" onclick=\"requestJson({'netDebug':"+(i.opt&0x0080?"false":"true")+"});\"><i class=\"icons "+(i.opt&0x0080?"on":"off")+"\">&#xe08f;</i></button>"):''} ${i.opt&0x100?inforow("Net Print ☾","<button class=\"btn btn-xs\" onclick=\"requestJson({'netDebug':"+(i.opt&0x0080?"false":"true")+"});\"><i class=\"icons "+(i.opt&0x0080?"on":"off")+"\">&#xe08f;</i></button>"):''}
${i.serialOnline?inforow(i.serialOnline,"TX="+i.sTX,"; RX="+i.sRX):""} ${i.serialOnline?inforow(i.serialOnline,"TX="+i.sTX,"; RX="+i.sRX):""}
${i.opt&0x100?'<tr><td colspan=2><hr style="height:1px;border-width:0;color:GoldenRod;background-color:GoldenRod"></td></tr>':''} ${i.opt&0x100?'<tr><td colspan=2><hr style="height:1px;border-width:0;color:GoldenRod;background-color:GoldenRod"></td></tr>':''}
${inforow("Build",i.vid)} ${inforow("Build",i.vid)}
@@ -3247,10 +3247,10 @@ function togglePcMode(fromB = false)
localStorage.setItem('pcm', pcModeA); localStorage.setItem('pcm', pcModeA);
pcMode = pcModeA; pcMode = pcModeA;
} }
if (wW < 798 && !pcMode) return; if (wW < 1024 && !pcMode) return;
if (!fromB && ((wW <= 798 && lastw <= 798) || (wW > 798 && lastw > 798))) return; if (!fromB && ((wW <= 1024 && lastw <= 1024) || (wW > 1024 && lastw > 1024))) return;
openTab(0, true); openTab(0, true);
if (wW <= 798) {pcMode = false;} if (wW <= 1024) {pcMode = false;}
else if (pcModeA && !fromB) pcMode = pcModeA; else if (pcModeA && !fromB) pcMode = pcModeA;
updateTablinks(0); updateTablinks(0);
gId('buttonPcm').className = (pcMode) ? "active":""; gId('buttonPcm').className = (pcMode) ? "active":"";

View File

@@ -246,9 +246,9 @@ Hue status: <span class="sip"> Disabled in this build </span>
<option value=15000>1500000</option> <option value=15000>1500000</option>
</select><br> </select><br>
<i>Keep at 115200 to use Improv. Some boards may not support high rates.</i> <i>Keep at 115200 to use Improv. Some boards may not support high rates.</i>
<h3>Net Serial</h3> <h3>Net Print</h3>
<div id="NoNetDebug" class="hide"> <div id="NoNetDebug" class="hide">
<em style="color:#fa0;">This firmware build does not include Net Serial support.<br></em> <!--WLEDMM we call it Net Serial--> <em style="color:#fa0;">This firmware build does not include Net Print support.<br></em> <!--WLEDMM we call it Net Print-->
</div> </div>
<div id="NetDebug"> <!--WLEDMM--> <div id="NetDebug"> <!--WLEDMM-->
Netcat host IP:<br> Netcat host IP:<br>

View File

@@ -1085,7 +1085,7 @@ const uint8_t PAGE_settings_ui[] PROGMEM = {
// Autogenerated from wled00/data/settings_sync.htm, do not edit!! // Autogenerated from wled00/data/settings_sync.htm, do not edit!!
const uint16_t PAGE_settings_sync_length = 3650; const uint16_t PAGE_settings_sync_length = 3653;
const uint8_t PAGE_settings_sync[] PROGMEM = { const uint8_t PAGE_settings_sync[] PROGMEM = {
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xad, 0x5a, 0xeb, 0x72, 0xdb, 0x36, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0xad, 0x5a, 0xeb, 0x72, 0xdb, 0x36,
0x16, 0xfe, 0xcf, 0xa7, 0x40, 0xd8, 0x99, 0x56, 0xaa, 0x65, 0xdd, 0x6c, 0x39, 0x8e, 0x2d, 0x32, 0x16, 0xfe, 0xcf, 0xa7, 0x40, 0xd8, 0x99, 0x56, 0xaa, 0x65, 0xdd, 0x6c, 0x39, 0x8e, 0x2d, 0x32,
@@ -1303,19 +1303,19 @@ const uint8_t PAGE_settings_sync[] PROGMEM = {
0xd5, 0x28, 0x4a, 0xb5, 0xd0, 0x56, 0x43, 0x09, 0xf8, 0x27, 0x63, 0x11, 0xe2, 0x59, 0xad, 0x2b, 0xd5, 0x28, 0x4a, 0xb5, 0xd0, 0x56, 0x43, 0x09, 0xf8, 0x27, 0x63, 0x11, 0xe2, 0x59, 0xad, 0x2b,
0x2c, 0x91, 0x88, 0x73, 0xb4, 0xa5, 0xaa, 0x64, 0xc8, 0xa1, 0x8f, 0x1c, 0x71, 0x1a, 0xbb, 0x1a, 0x2c, 0x91, 0x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
0x62, 0xc3, 0x87, 0x1c, 0xaf, 0xf9, 0x26, 0xc3, 0x98, 0xfb, 0xde, 0x03, 0xbf, 0x3b, 0x81, 0x3f, 0x0e, 0xbf, 0x9c, 0xd8, 0xf0, 0x19, 0xc7, 0x6b, 0xbe, 0xc8, 0x30, 0xe6, 0xbe, 0xf6, 0xc0, 0xaf,
0xf8, 0x6d, 0x0a, 0x7e, 0xa8, 0x82, 0x5f, 0xa5, 0xfe, 0x0f, 0xaa, 0x1e, 0xd1, 0xf1, 0xa5, 0x2a, 0x4e, 0xe0, 0x0f, 0x7e, 0x99, 0x82, 0x9f, 0xa9, 0xe0, 0x37, 0xa9, 0xff, 0x03, 0xc2, 0xe7, 0x0c,
0x00, 0x00 0x2d, 0xa3, 0x2a, 0x00, 0x00
}; };

File diff suppressed because it is too large Load Diff

View File

@@ -990,7 +990,7 @@ void serializeInfo(JsonObject root)
#endif #endif
//WLEDMM: WLED_DEBUG_HOST independent from WLED_DEBUG //WLEDMM: WLED_DEBUG_HOST independent from WLED_DEBUG
#ifdef WLED_DEBUG_HOST #ifdef WLED_DEBUG_HOST
os = 0x80; //WLEDMM: also if not WLED_DEBUG (on off button Net Debug/Net Serial) os = 0x80; //WLEDMM: also if not WLED_DEBUG (on off button Net Debug/Net Print)
os |= 0x0100; os |= 0x0100;
if (!netDebugEnabled) os &= ~0x0080; if (!netDebugEnabled) os &= ~0x0080;
#endif #endif

View File

@@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2303260 #define VERSION 2303270
//uncomment this if you have a "my_config.h" file you'd like to use //uncomment this if you have a "my_config.h" file you'd like to use
//#define WLED_USE_MY_CONFIG //#define WLED_USE_MY_CONFIG