Add nextion2text

This commit is contained in:
joBr99
2022-03-12 19:54:11 +00:00
committed by GitHub Actions
parent d2c4a35852
commit 50d1266ff1
6 changed files with 60 additions and 2 deletions

View File

@@ -1583,6 +1583,10 @@ Timer tmSerial
{
page pageStartup
}
if(tId.txt=="pageNotify")
{
page popupNotify
}
}
if(tInstruction.txt=="time")
{

View File

@@ -484,6 +484,10 @@ Timer tmSerial
{
page pageStartup
}
if(tId.txt=="pageNotify")
{
page popupNotify
}
}
// end of user code
udelete payloadLength-1

View File

@@ -513,6 +513,10 @@ Timer tmSerial
{
page pageStartup
}
if(tId.txt=="pageNotify")
{
page popupNotify
}
}
// end of user code
udelete payloadLength-1

View File

@@ -323,6 +323,10 @@ Timer tmSerial
{
page pageStartup
}
if(tId.txt=="pageNotify")
{
page popupNotify
}
}
// end of user code
udelete payloadLength-1

View File

@@ -17,7 +17,7 @@ Page popupNotify
vis tSend,0
vis tTmp,0
vis tInstruction,0
vis tItem,0
vis tId,0
//page open event
// event,pageOpenDetail,typeOfPage,tEntityName
// craft command
@@ -74,7 +74,7 @@ Text tInstruction
Text :
Max. Text Size : 20
Text tItem
Text tId
Attributes
ID : 10
Scope : local
@@ -290,6 +290,44 @@ Timer tmSerial
spstr strCommand.txt,tTmp.txt,",",1
covx tTmp.txt,sleepTimeout,0,0
}
if(tInstruction.txt=="pageType")
{
//command format pageType,specialPageName
//write name of speical page to tId
spstr strCommand.txt,tId.txt,",",1
//save second arg if there's one
spstr strCommand.txt,tTmp.txt,",",2
if(tId.txt=="pageNotify")
{
//yay, we are already on the correct page
}else
{
//we are going to exit this page with this command, so we have to clear the buffer, so we are not getting into a stupid loop ...
udelete u[2]+3
bufferPos=0
}
if(tId.txt=="popupLight")
{
pageIcons.tTmp1.txt=tTmp.txt
page popupLight
}
if(tId.txt=="cardEntities")
{
page cardEntities
}
if(tId.txt=="cardMedia")
{
page cardMedia
}
if(tId.txt=="pageStartup")
{
page pageStartup
}
if(tId.txt=="pageThermo")
{
page cardThermo
}
}
// end of user code
udelete payloadLength-1
bufferPos=0

View File

@@ -416,6 +416,10 @@ Timer tmSerial
{
page pageStartup
}
if(tId.txt=="pageNotify")
{
page popupNotify
}
}
// end of user code
udelete payloadLength-1