Merge branch 'main' of https://github.com/joBr99/nspanel-lovelace-ui (add nextion2text)

This commit is contained in:
joBr99
2022-06-23 20:59:33 +00:00
committed by github-actions[bot]
parent 8bbb30a385
commit 847d7e5c2a
8 changed files with 112 additions and 210 deletions

View File

@@ -14,10 +14,14 @@ popupNotify
17 Component(s)
214 Line(s) of event code
132 Unique line(s) of event code
popupLight
27 Component(s)
382 Line(s) of event code
209 Unique line(s) of event code
popupShutter
25 Component(s)
388 Line(s) of event code
207 Unique line(s) of event code
211 Unique line(s) of event code
cardMedia
34 Component(s)
384 Line(s) of event code
@@ -26,10 +30,6 @@ cardQR
32 Component(s)
384 Line(s) of event code
223 Unique line(s) of event code
popupLight
27 Component(s)
363 Line(s) of event code
196 Unique line(s) of event code
cardAlarm
40 Component(s)
417 Line(s) of event code
@@ -58,5 +58,5 @@ cardEntities
Total
13 Page(s)
424 Component(s)
4928 Line(s) of event code
1302 Unique line(s) of event code
4947 Line(s) of event code
1312 Unique line(s) of event code

View File

@@ -20,6 +20,25 @@ Page popupLight
Events
Preinitialize Event
for(sys0=0;sys0<40;sys0++)
{
b[sys0].bco=defaultBcoColor
b[sys0].pco=defaultFontColor
if(b[sys0].type==53&&defaultBcoColor==0)
{
b[sys0].pic=10
b[sys0].pic2=11
}
}
if(defaultBcoColor==0)
{
hBrightness.pic=14
hBrightness.pic1=13
hBrightness.pic2=15
hTempSlider.pic=16
hTempSlider.pic1=17
hTempSlider.pic2=15
}
dim=dimValueNormal
//get entitiy name
tEntity.txt=pageIcons.tTmp1.txt

View File

@@ -388,7 +388,7 @@ Slider hTilt
Touch Release Event
// event,buttonPress2,internalNameEntity,positionSlider,50
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider,"
tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider,"
covx hPosition.val,tTmp.txt,0,0
tSend.txt+=tTmp.txt
//send calc crc
@@ -625,7 +625,7 @@ Button bTLeft
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",up"
tSend.txt="event,buttonPress2,"+entn.txt+",tiltOpen"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -672,7 +672,7 @@ Button bTStop
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",stop"
tSend.txt="event,buttonPress2,"+entn.txt+",tiltStop"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC
@@ -719,7 +719,7 @@ Button bTRight
Events
Touch Press Event
tSend.txt="event,buttonPress2,"+entn.txt+",down"
tSend.txt="event,buttonPress2,"+entn.txt+",tiltClose"
//send calc crc
btlen tSend.txt,sys0
crcrest 1,0xffff // reset CRC