mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-28 13:20:12 +01:00
fixes #957 (add nextion2text)
This commit is contained in:
committed by
github-actions[bot]
parent
98b40de8dc
commit
306a189d79
@@ -633,6 +633,10 @@ Timer tmSerial
|
||||
{
|
||||
page cardGrid
|
||||
}
|
||||
if(tId.txt=="cardGrid2")
|
||||
{
|
||||
page cardGrid2
|
||||
}
|
||||
if(tId.txt=="popupLight")
|
||||
{
|
||||
pageIcons.tTmp1.txt=tTmp.txt
|
||||
|
||||
@@ -706,6 +706,21 @@ Timer tmSerial
|
||||
covx tTmp.txt,tNotifyText.pco,0,0
|
||||
}
|
||||
}
|
||||
if(tInstruction.txt=="getBrightness")
|
||||
{
|
||||
tSend.txt="event,getBrightnessResponse,"
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
crcputh 55 bb
|
||||
crcputs sys0,2
|
||||
crcputs dim,0
|
||||
//send cmd
|
||||
printh 55 bb
|
||||
prints sys0,2
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
}
|
||||
if(tInstruction.txt=="pageType")
|
||||
{
|
||||
dim=100
|
||||
|
||||
Reference in New Issue
Block a user