mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-03-01 16:06:51 +01:00
Merge branch 'main' of github.com:joBr99/nspanel-lovelace-ui (add nextion2text)
This commit is contained in:
@@ -27,25 +27,6 @@ Page cardMedia
|
||||
vis tTmp,0
|
||||
vis tId,0
|
||||
//vis nPageDisp,0
|
||||
//page open event
|
||||
// event,pageOpen,cardEntities,pageNumber
|
||||
// craft command
|
||||
// convert pageNumber and write to tTmp
|
||||
covx nPage,tTmp.txt,0,0
|
||||
tSend.txt="event,pageOpen,"+tTmp.txt
|
||||
//send calc crc
|
||||
btlen tSend.txt,sys0
|
||||
crcrest 1,0xffff // reset CRC
|
||||
crcputh 55 bb
|
||||
crcputs sys0,1
|
||||
crcputs tSend.txt,0
|
||||
//send cmd
|
||||
printh 55 bb
|
||||
prints sys0,2
|
||||
prints tSend.txt,0
|
||||
prints crcval,2
|
||||
//display current page from global var
|
||||
nPageDisp.val=nPage
|
||||
|
||||
Variable (string) strCommand
|
||||
Attributes
|
||||
@@ -573,7 +554,7 @@ Button bNext
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Back. Picture ID (Pressed) : 65535
|
||||
Back. Color (Pressed) : 1024
|
||||
Back. Color (Pressed) : 14823
|
||||
Font Color (Unpressed) : 65535
|
||||
Font Color (Pressed) : 65535
|
||||
Horizontal Alignment : center
|
||||
@@ -627,7 +608,7 @@ Button bPrev
|
||||
Font ID : 2
|
||||
Back. Color : 6371
|
||||
Back. Picture ID (Pressed) : 65535
|
||||
Back. Color (Pressed) : 1024
|
||||
Back. Color (Pressed) : 14823
|
||||
Font Color (Unpressed) : 65535
|
||||
Font Color (Pressed) : 65535
|
||||
Horizontal Alignment : center
|
||||
|
||||
Reference in New Issue
Block a user