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

This commit is contained in:
joBr99
2022-03-26 09:31:24 +00:00
committed by GitHub Actions
parent 5e7198be2a
commit 1046550abc
2 changed files with 31 additions and 8 deletions

View File

@@ -500,6 +500,8 @@ Slider hBrightness
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=100
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",brightnessSlider,"
covx hBrightness.val,tTmp.txt,0,0
@@ -543,6 +545,8 @@ Slider hTempSlider
Events
Touch Release Event
tmCooldown.en=1
tmCooldown.tim=100
//craft command
tSend.txt="event,buttonPress2,"+entn.txt+",colorTempSlider,"
covx hTempSlider.val,tTmp.txt,0,0
@@ -810,7 +814,10 @@ Timer tmSerial
vis t2,1
vis hBrightness,1
covx tTmp.txt,sys0,0,0
hBrightness.val=sys0
if(tmCooldown.en==0)
{
hBrightness.val=sys0
}
}
// get ColorTemp value
spstr strCommand.txt,tTmp.txt,",",5
@@ -843,6 +850,11 @@ Timer tmSerial
vis hTempSlider,1
vis t3,1
vis t4,1
if(tmCooldown.en==0)
{
covx tTmp.txt,sys0,0,0
hTempSlider.val=sys0
}
// mode == 0 is rgb controls currently shown
if(mode.val==0)
{
@@ -944,6 +956,17 @@ Timer tmSerial
}
}
Timer tmCooldown
Attributes
ID : 26
Scope : local
Period (ms): 100
Enabled : no
Events
Timer Event
tmCooldown.en=0
TouchCap tc0
Attributes
ID : 14