From b1be7932c3628cd9bb3482aac6424d71d2fa281c Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Sat, 19 Mar 2022 07:22:33 +0000 Subject: [PATCH] added page command to screensaver (add nextion2text) --- HMI/n2t-out/nspanel_Stats.txt | 8 ++++---- HMI/n2t-out/screensaver.txt | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/HMI/n2t-out/nspanel_Stats.txt b/HMI/n2t-out/nspanel_Stats.txt index 3c8d3381..36933664 100644 --- a/HMI/n2t-out/nspanel_Stats.txt +++ b/HMI/n2t-out/nspanel_Stats.txt @@ -12,8 +12,8 @@ pageSerialTest 43 Unique line(s) of event code screensaver 25 Component(s) - 146 Line(s) of event code - 116 Unique line(s) of event code + 152 Line(s) of event code + 118 Unique line(s) of event code pageSwipeTest 18 Component(s) 62 Line(s) of event code @@ -58,5 +58,5 @@ cardAlarm Total 13 Page(s) 302 Component(s) - 2659 Line(s) of event code - 682 Unique line(s) of event code + 2665 Line(s) of event code + 684 Unique line(s) of event code diff --git a/HMI/n2t-out/screensaver.txt b/HMI/n2t-out/screensaver.txt index c1f54319..e2fde4aa 100644 --- a/HMI/n2t-out/screensaver.txt +++ b/HMI/n2t-out/screensaver.txt @@ -725,6 +725,14 @@ Timer tmSerial //tForecast2Val spstr strCommand.txt,tForecast2Val.txt,"?",10 } + if(tInstruction.txt=="page") + { + //pagenumber + spstr strCommand.txt,tTmp.txt,"?",1 + covx tTmp.txt,sys0,0,0 + substr pageIcons.tIcons.txt,nPage,sys0,1 + //don't send current page number, wake will do + } if(tInstruction.txt=="pageType") { //command format pageType,specialPageName