diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 986fe838..8d1003bf 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -12,7 +12,1238 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup -├── pageStartup.txt +├── arm1.txt +│ @@ -478,22 +478,15 @@ +│ Send Component ID : disabled +│ State : unpressed +│ Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,cardAlarm," +│ - if(bPrev.txt=="") +│ - { +│ - tSend.txt+="bHome" +│ - }else +│ - { +│ - tSend.txt+="bNext" +│ - } +│ + tSend.txt="event,buttonPress2,cardAlarm,bNext" +│ //send calc crc +│ btlen tSend.txt,sys0 +│ crcrest 1,0xffff // reset CRC +│ crcputh 55 bb +│ crcputs sys0,2 +│ crcputs tSend.txt,0 +│ //send cmd +│ @@ -671,19 +664,14 @@ +│ } +│ if(tTmp.txt=="1") +│ { +│ vis bNext,1 +│ tsw mSwipeNext,1 +│ bNext.txt="" +│ } +│ - if(tTmp.txt=="2") +│ - { +│ - vis bNext,1 +│ - bNext.txt="" +│ - } +│ //text arm1 +│ spstr strCommand.txt,arm1.txt,"~",3 +│ if(arm1.txt!="") +│ { +│ vis arm1,1 +│ } +│ //id arm1 +├── bDown1.txt +│ @@ -529,22 +529,15 @@ +│ Send Component ID : disabled +│ State : unpressed +│ Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,cardEntities," +│ - if(bPrev.txt=="") +│ - { +│ - tSend.txt+="bHome" +│ - }else +│ - { +│ - tSend.txt+="bNext" +│ - } +│ + tSend.txt="event,buttonPress2,cardEntities,bNext" +│ //send calc crc +│ btlen tSend.txt,sys0 +│ crcrest 1,0xffff // reset CRC +│ crcputh 55 bb +│ crcputs sys0,2 +│ crcputs tSend.txt,0 +│ //send cmd +│ @@ -1253,19 +1246,14 @@ +│ } +│ if(tTmp.txt=="1") +│ { +│ vis bNext,1 +│ tsw mSwipeNext,1 +│ bNext.txt="" +│ } +│ - if(tTmp.txt=="2") +│ - { +│ - vis bNext,1 +│ - bNext.txt="" +│ - } +│ // get Type +│ spstr strCommand.txt,type1.txt,"~",3 +│ // get internal name +│ spstr strCommand.txt,entn1.txt,"~",4 +│ if(type1.txt=="delete"||type1.txt=="") +│ { +│ vis bUp1,0 +├── bDown2.txt +│ @@ -290,22 +290,15 @@ +│ Send Component ID : disabled +│ State : unpressed +│ Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,cardThermo," +│ - if(bPrev.txt=="") +│ - { +│ - tSend.txt+="bHome" +│ - }else +│ - { +│ - tSend.txt+="bNext" +│ - } +│ + tSend.txt="event,buttonPress2,cardThermo,bNext" +│ //send calc crc +│ btlen tSend.txt,sys0 +│ crcrest 1,0xffff // reset CRC +│ crcputh 55 bb +│ crcputs sys0,2 +│ crcputs tSend.txt,0 +│ //send cmd +│ @@ -925,19 +918,14 @@ +│ } +│ if(tTmp.txt=="1") +│ { +│ vis bNext,1 +│ tsw mSwipeNext,1 +│ bNext.txt="" +│ } +│ - if(tTmp.txt=="2") +│ - { +│ - vis bNext,1 +│ - bNext.txt="" +│ - } +│ //entity name +│ spstr strCommand.txt,entn.txt,"~",3 +│ //currentTemp +│ spstr strCommand.txt,tCurTemp.txt,"~",4 +│ //dstTemp +│ spstr strCommand.txt,tTmp.txt,"~",5 +│ covx tTmp.txt,xTempDest1.val,0,0 +├── bEntity1.txt +│ @@ -467,22 +467,15 @@ +│ Send Component ID : disabled +│ State : unpressed +│ Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,cardGrid," +│ - if(bPrev.txt=="") +│ - { +│ - tSend.txt+="bHome" +│ - }else +│ - { +│ - tSend.txt+="bNext" +│ - } +│ + tSend.txt="event,buttonPress2,cardGrid,bNext" +│ //send calc crc +│ btlen tSend.txt,sys0 +│ crcrest 1,0xffff // reset CRC +│ crcputh 55 bb +│ crcputs sys0,2 +│ crcputs tSend.txt,0 +│ //send cmd +│ @@ -680,19 +673,14 @@ +│ } +│ if(tTmp.txt=="1") +│ { +│ vis bNext,1 +│ tsw mSwipeNext,1 +│ bNext.txt="" +│ } +│ - if(tTmp.txt=="2") +│ - { +│ - vis bNext,1 +│ - bNext.txt="" +│ - } +│ // get Type +│ spstr strCommand.txt,type1.txt,"~",3 +│ // get internal name +│ spstr strCommand.txt,entn1.txt,"~",4 +│ if(type1.txt=="delete"||type1.txt=="") +│ { +│ vis tEntity1,0 +├── bNext.txt +│ @@ -1,8 +1,8 @@ +│ -Page cardMedia +│ +Page cardPower +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Locked : no +│ Swide up page ID : disabled +│ @@ -14,451 +14,343 @@ +│ Preinitialize Event +│ dim=dimValueNormal +│ vis p0,0 +│ vis tSend,0 +│ vis tInstruction,0 +│ vis tTmp,0 +│ vis tId,0 +│ - vis t5,0 +│ vis bPrev,0 +│ vis bNext,0 +│ - cardMedia.bco=defaultBcoColor +│ - for(sys0=0;sys0<34;sys0++) +│ + tsw h0,0 +│ + tsw h1,0 +│ + tsw h2,0 +│ + tsw h3,0 +│ + tsw h4,0 +│ + tsw h5,0 +│ + vis h0,0 +│ + vis h1,0 +│ + vis h2,0 +│ + vis h3,0 +│ + vis h4,0 +│ + vis h5,0 +│ + vis t0Icon,0 +│ + vis t1Icon,0 +│ + vis t2Icon,0 +│ + vis t3Icon,0 +│ + vis t4Icon,0 +│ + vis t5Icon,0 +│ + cardPower.bco=defaultBcoColor +│ + for(sys0=0;sys0<43;sys0++) +│ { +│ if(b[sys0].type==98||b[sys0].type==116) +│ { +│ b[sys0].bco=defaultBcoColor +│ b[sys0].pco=defaultFontColor +│ } +│ - } +│ - if(defaultBcoColor==0) +│ - { +│ - hVolume.pic=14 +│ - hVolume.pic1=13 +│ - hVolume.pic2=15 +│ + if(defaultBcoColor==0) +│ + { +│ + if(b[sys0].type==1) +│ + { +│ + b[sys0].pic=19 +│ + b[sys0].pic1=19 +│ + b[sys0].pic2=15 +│ + } +│ + } +│ } +│ +│ -Variable (string) entn +│ +Variable (string) strCommand +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 80 +│ + Max. Text Size: 275 +│ +│ -Variable (string) strCommand +│ +Variable (int32) t0Speed +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ +Variable (int32) t1Speed +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ +Variable (int32) t2Speed +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ +Variable (int32) t3Speed +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ +Variable (int32) t4Speed +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ +Variable (int32) t5Speed +│ + Attributes +│ + Scope: local +│ + Value: 0 +│ + +│ +Variable (string) tId +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 750 +│ + Max. Text Size: 20 +│ +│ -Variable (string) tSend +│ +Variable (string) tInstruction +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 200 +│ + Max. Text Size: 20 +│ +│ -Variable (string) vaMenu +│ +Variable (string) tSend +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 50 +│ + Max. Text Size: 200 +│ +│ -Variable (string) vaSpeakerList +│ +Variable (string) tTmp +│ Attributes +│ Scope : local +│ Text : +│ - Max. Text Size: 400 +│ + Max. Text Size: 10 +│ +│ -Variable (int32) vaSpeakerPos +│ +Text t0Icon +│ Attributes +│ - Scope: local +│ - Value: 0 +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Associated Keyboard : none +│ + Text :  +│ + Max. Text Size : 5 +│ +│ -Text t0 +│ +Text t0u +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text : +│ + Max. Text Size : 20 +│ +│ - Events +│ - Touch Press Event +│ - // event,buttonPress2,entn,media-back +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - tSend.txt+="media-back" +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ Text t1 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text :  +│ + Max. Text Size : 5 +│ +│ - Events +│ - Touch Press Event +│ - hVolume.val=hVolume.val-1 +│ - // event,buttonPress2,internalNameEntity,volumeSlider,50 +│ - //craft command +│ - tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," +│ - covx hVolume.val,tTmp.txt,0,0 +│ - tSend.txt+=tTmp.txt +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ -Text t2 +│ +Text t1Icon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text :  +│ + Max. Text Size : 5 +│ +│ - Events +│ - Touch Press Event +│ - // event,buttonPress2,entn,media-next +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - tSend.txt+="media-next" +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ -Text t3 +│ +Text t1u +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text : +│ + Max. Text Size : 20 +│ +│ - Events +│ - Touch Press Event +│ - hVolume.val=hVolume.val+1 +│ - // event,buttonPress2,internalNameEntity,volumeSlider,50 +│ - //craft command +│ - tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," +│ - covx hVolume.val,tTmp.txt,0,0 +│ - tSend.txt+=tTmp.txt +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ -Text t4 +│ +Text t2Icon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text : î ° +│ + Max. Text Size : 5 +│ +│ -Text t5 +│ +Text t2u +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text : +│ + Max. Text Size : 20 +│ +│ - Events +│ - Touch Press Event +│ - // event,buttonPress2,entn,media-next +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - tSend.txt+="media-OnOff" +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ -Text t6 +│ +Text t3Icon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text : î ° +│ + Max. Text Size : 5 +│ +│ - Events +│ - Touch Press Event +│ - //speaker +│ - tSpeaker.pco=65535 +│ - spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val +│ - vaSpeakerPos.val+=1 +│ - if(tSpeaker.txt=="") +│ - { +│ - vaSpeakerPos.val=0 +│ - spstr vaSpeakerList.txt,tSpeaker.txt,"?",vaSpeakerPos.val +│ - } +│ - +│ -Text tAuthor +│ +Text t3u +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 50 +│ + Max. Text Size : 20 +│ +│ -Text tHeading +│ +Text t4Icon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text : +│ - Max. Text Size : 40 +│ + Text : î´½ +│ + Max. Text Size : 5 +│ +│ -Text tIcon +│ +Text t4u +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 10 +│ + Max. Text Size : 20 +│ +│ - Events +│ - Touch Release Event +│ - if(vaMenu.txt!="") +│ - { +│ - tSend.txt="event,buttonPress2,"+vaMenu.txt+",button" +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - } +│ - +│ -Text tId +│ +Text t5Icon +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text : +│ - Max. Text Size : 20 +│ + Text :  +│ + Max. Text Size : 5 +│ +│ -Text tInstruction +│ +Text t5u +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ Max. Text Size : 20 +│ +│ -Text tPlayPause +│ +Text tHeading +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ - Text :  +│ - Max. Text Size : 10 +│ + Text : +│ + Max. Text Size : 40 +│ +│ - Events +│ - Touch Press Event +│ - // event,buttonPress2,entn,media-pause +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - tSend.txt+="media-pause" +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ -Text tSpeaker +│ +Text tHome +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Associated Keyboard : none +│ Text : +│ - Max. Text Size : 50 +│ + Max. Text Size : 20 +│ +│ - Events +│ - Touch Press Event +│ - // event,buttonPress2,entn,media-next +│ - //craft command +│ - tSend.txt="event,buttonPress2," +│ - tSend.txt+=entn.txt+"," +│ - tSend.txt+="speaker-sel,"+tSpeaker.txt +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ -Text tTitle +│ +Picture p0 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - Associated Keyboard : none +│ - Text : +│ - Max. Text Size : 50 +│ +│ -Text tTmp +│ +Slider h0 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ - Associated Keyboard : none +│ - Text : +│ - Max. Text Size : 10 +│ + Position : 50 +│ + Upper range limit : 100 +│ + Lower range limit : 0 +│ +│ -Picture p0 +│ +Slider h1 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ + Position : 50 +│ + Upper range limit : 100 +│ + Lower range limit : 0 +│ +│ -Slider hVolume +│ +Slider h2 +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Position : 50 +│ + Upper range limit : 100 +│ + Lower range limit : 0 +│ + +│ +Slider h3 +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Position : 50 +│ + Upper range limit : 100 +│ + Lower range limit : 0 +│ + +│ +Slider h4 +│ + Attributes +│ + Scope : local +│ + Dragging : 0 +│ + Disable release event after dragging: 0 +│ + Send Component ID : disabled +│ + Position : 50 +│ + Upper range limit : 100 +│ + Lower range limit : 0 +│ + +│ +Slider h5 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ Position : 50 +│ Upper range limit : 100 +│ Lower range limit : 0 +│ +│ - Events +│ - Touch Release Event +│ - tmCooldown.en=1 +│ - tmCooldown.tim=800 +│ - // event,buttonPress2,internalNameEntity,volumeSlider,50 +│ - //craft command +│ - tSend.txt="event,buttonPress2,"+entn.txt+",volumeSlider," +│ - covx hVolume.val,tTmp.txt,0,0 +│ - tSend.txt+=tTmp.txt +│ - //send calc crc +│ - btlen tSend.txt,sys0 +│ - crcrest 1,0xffff // reset CRC +│ - crcputh 55 bb +│ - crcputs sys0,2 +│ - crcputs tSend.txt,0 +│ - //send cmd +│ - printh 55 bb +│ - prints sys0,2 +│ - prints tSend.txt,0 +│ - prints crcval,2 +│ - +│ Button bNext +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ State : unpressed +│ Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,cardMedia," +│ - if(bPrev.txt=="") +│ - { +│ - tSend.txt+="bHome" +│ - }else +│ - { +│ - tSend.txt+="bNext" +│ - } +│ + tSend.txt="event,buttonPress2,cardAlarm,bNext" +│ //send calc crc +│ btlen tSend.txt,sys0 +│ crcrest 1,0xffff // reset CRC +│ crcputh 55 bb +│ crcputs sys0,2 +│ crcputs tSend.txt,0 +│ //send cmd +│ @@ -475,15 +367,15 @@ +│ Send Component ID : disabled +│ State : unpressed +│ Text :  +│ Max. Text Size : 10 +│ +│ Events +│ Touch Press Event +│ - tSend.txt="event,buttonPress2,cardMedia," +│ + tSend.txt="event,buttonPress2,cardAlarm," +│ if(bPrev.txt=="") +│ { +│ tSend.txt+="bUp" +│ }else +│ { +│ tSend.txt+="bPrev" +│ } +│ @@ -528,23 +420,82 @@ +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ +│ Events +│ Touch Press Event +│ click bPrev,1 +│ +│ -Timer tmCooldown +│ +Timer tm0 +│ Attributes +│ Scope : local +│ Period (ms): 100 +│ - Enabled : no +│ + Enabled : yes +│ +│ Events +│ Timer Event +│ - tmCooldown.en=0 +│ + sys0=h0.val+t0Speed.val +│ + if(sys0>h0.maxval) +│ + { +│ + h0.val=h0.minval +│ + } +│ + if(sys0h1.maxval) +│ + { +│ + h1.val=h1.minval +│ + } +│ + if(sys0h2.maxval) +│ + { +│ + h2.val=h2.minval +│ + } +│ + if(sys0h3.maxval) +│ + { +│ + h3.val=h3.minval +│ + } +│ + if(sys0h4.maxval) +│ + { +│ + h4.val=h4.minval +│ + } +│ + if(sys0h5.maxval) +│ + { +│ + h5.val=h5.minval +│ + } +│ + if(sys0xTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1276,15 +823,503 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 Attributes - ID : 42 + ID : 16 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 193 + x coordinate : 18 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 74 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 130 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 186 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 242 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 298 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 354 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 410 + y coordinate : 255 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 409 + y coordinate : 199 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown + Attributes + ID : 49 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 272 + y coordinate : 180 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val>xTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 346 y coordinate : 179 Width : 50 Height : 50 @@ -1310,9 +1345,9 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1395,16 +1430,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes - ID : 49 + ID : 32 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 272 - y coordinate : 180 + x coordinate : 346 + y coordinate : 67 Width : 50 Height : 50 Effect : load @@ -1421,7 +1456,7 @@ Dual-state Button btDown Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1429,17 +1464,20 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.valh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys0h0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - 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 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //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 payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - ID : 25 - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - ID : 13 - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/landscape/n2t-out-visual/popupNotify.txt b/HMI/US/landscape/n2t-out-visual/popupNotify.txt deleted file mode 100644 index 3f63ad0f..00000000 --- a/HMI/US/landscape/n2t-out-visual/popupNotify.txt +++ /dev/null @@ -1,724 +0,0 @@ -Page popupNotify - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - ID : 7 - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - ID : 14 - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - ID : 15 - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - ID : 16 - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 421 - y coordinate : 277 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 15 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 115 - y coordinate : 290 - Width : 100 - Height : 29 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 38 - y coordinate : 26 - Width : 345 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 1 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tText - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 38 - y coordinate : 74 - Width : 397 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTextAlt - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 150 - y coordinate : 74 - Width : 285 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 38 - y coordinate : 74 - Width : 109 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 250 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 480 - Height : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button b0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 412 - y coordinate : 8 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 254 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 39 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 5 - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -672,7 +417,239 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown Attributes Scope : local Dragging : 0 @@ -684,9 +661,45 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -747,29 +760,32 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.valh0.maxval) + { + h0.val=h0.minval + } + if(sys0h1.maxval) + { + h1.val=h1.minval + } + if(sys0h2.maxval) + { + h2.val=h2.minval + } + if(sys0h3.maxval) + { + h3.val=h3.minval + } + if(sys0h4.maxval) + { + h4.val=h4.minval + } + if(sys0h5.maxval) + { + h5.val=h5.minval + } + if(sys0h0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - 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 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //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 payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/landscape/n2t-out/popupNotify.txt b/HMI/US/landscape/n2t-out/popupNotify.txt deleted file mode 100644 index 3c9399fd..00000000 --- a/HMI/US/landscape/n2t-out/popupNotify.txt +++ /dev/null @@ -1,493 +0,0 @@ -Page popupNotify - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tText - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tTextAlt - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 250 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1276,15 +823,503 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 Attributes - ID : 39 + ID : 16 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 57 + x coordinate : 36 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 102 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 168 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 234 + y coordinate : 359 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 36 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 102 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 168 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 234 + y coordinate : 424 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 267 + y coordinate : 306 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 1 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown + Attributes + ID : 46 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 136 + y coordinate : 289 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val>xTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 210 y coordinate : 288 Width : 50 Height : 50 @@ -1310,9 +1345,9 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1395,16 +1430,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes - ID : 46 + ID : 32 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 136 - y coordinate : 289 + x coordinate : 210 + y coordinate : 176 Width : 50 Height : 50 Effect : load @@ -1421,7 +1456,7 @@ Dual-state Button btDown Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1429,17 +1464,20 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.val1) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - 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 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //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 payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - ID : 25 - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - ID : 13 - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/portrait/n2t-out-visual/popupNotify.txt b/HMI/US/portrait/n2t-out-visual/popupNotify.txt deleted file mode 100644 index cb3e696c..00000000 --- a/HMI/US/portrait/n2t-out-visual/popupNotify.txt +++ /dev/null @@ -1,724 +0,0 @@ -Page popupNotify - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - ID : 7 - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - ID : 14 - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - ID : 15 - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - ID : 16 - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 281 - y coordinate : 409 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 13 - y coordinate : 409 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 113 - y coordinate : 410 - Width : 100 - Height : 29 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 5 - y coordinate : 21 - Width : 260 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tText - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 4 - y coordinate : 76 - Width : 307 - Height : 260 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTextAlt - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 4 - y coordinate : 164 - Width : 306 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 3 - y coordinate : 74 - Width : 308 - Height : 90 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 250 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 319 - Height : 479 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button b0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 268 - y coordinate : 14 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 162 - y coordinate : 348 - Width : 150 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 5 - y coordinate : 348 - Width : 150 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 5 - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -672,7 +417,239 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown Attributes Scope : local Dragging : 0 @@ -684,9 +661,45 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -747,29 +760,32 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - 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 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //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 payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/US/portrait/n2t-out/popupNotify.txt b/HMI/US/portrait/n2t-out/popupNotify.txt deleted file mode 100644 index 3c9399fd..00000000 --- a/HMI/US/portrait/n2t-out/popupNotify.txt +++ /dev/null @@ -1,493 +0,0 @@ -Page popupNotify - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tText - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tTextAlt - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 250 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1276,15 +830,503 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 Attributes - ID : 42 + ID : 16 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 178 + x coordinate : 12 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 66 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 120 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 174 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 228 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 282 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 336 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 390 + y coordinate : 254 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 64512 + Horizontal Alignment : center + Vertical Alignment : center + State : pressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + ID : 52 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 391 + y coordinate : 200 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown + Attributes + ID : 49 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 257 + y coordinate : 180 + Width : 50 + Height : 50 + Effect : load + Effect Priority : 0 + Effect Time : 300 + Fill : solid color + Style : flat + Font ID : 3 + Back. Color (Unpressed) : 6371 + Back. Picture ID (Pressed) : 65535 + Back. Color (Pressed) : 6371 + Font Color (Unpressed) : 50712 + Font Color (Pressed) : 50712 + Horizontal Alignment : center + Vertical Alignment : center + State : unpressed + Text :  + Max. Text Size : 10 + Word wrap : disabled + Horizontal Spacing : 0 + Vertical Spacing : 0 + + Events + Touch Press Event + if(xTempDest.val>xTempMin1.val) + { + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + ID : 33 + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + Opacity : 127 + x coordinate : 331 y coordinate : 179 Width : 50 Height : 50 @@ -1310,9 +1352,9 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest1.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -1395,16 +1437,16 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes - ID : 49 + ID : 32 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 - x coordinate : 257 - y coordinate : 180 + x coordinate : 331 + y coordinate : 67 Width : 50 Height : 50 Effect : load @@ -1421,7 +1463,7 @@ Dual-state Button btDown Horizontal Alignment : center Vertical Alignment : center State : unpressed - Text :  + Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 @@ -1429,17 +1471,20 @@ Dual-state Button btDown Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.val1) - { - bufferPos=0 - while(bufferPosh0.maxval) - { - h0.val=h0.minval - } - if(sys0h1.maxval) - { - h1.val=h1.minval - } - if(sys0h2.maxval) - { - h2.val=h2.minval - } - if(sys0h3.maxval) - { - h3.val=h3.minval - } - if(sys0h4.maxval) - { - h4.val=h4.minval - } - if(sys0h5.maxval) - { - h5.val=h5.minval - } - if(sys01) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - 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 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //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 payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - ID : 25 - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - ID : 13 - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/n2t-out-visual/popupNotify.txt b/HMI/n2t-out-visual/popupNotify.txt deleted file mode 100644 index 86f1cd78..00000000 --- a/HMI/n2t-out-visual/popupNotify.txt +++ /dev/null @@ -1,724 +0,0 @@ -Page popupNotify - Attributes - ID : 0 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - Width : 480 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - Fill : solid color - Back. Color : 6371 - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - ID : 7 - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - ID : 14 - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - ID : 15 - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - ID : 16 - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - ID : 3 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 406 - y coordinate : 277 - Width : 34 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tInstruction - Attributes - ID : 8 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 290 - Width : 100 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tId - Attributes - ID : 9 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 100 - y coordinate : 290 - Width : 100 - Height : 29 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 65535 - Font Color : 0 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 20 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tHeading - Attributes - ID : 10 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 26 - Width : 345 - Height : 30 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 2 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 40 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tText - Attributes - ID : 11 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 74 - Width : 397 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tTextAlt - Attributes - ID : 17 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 135 - y coordinate : 74 - Width : 285 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 0 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : left - Vertical Alignment : top - Input Type : character - Text : - Max. Text Size : 500 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Text tIcon - Attributes - ID : 18 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 23 - y coordinate : 74 - Width : 109 - Height : 171 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Associated Keyboard : none - Font ID : 4 - Back. Color : 6371 - Font Color : 65535 - Horizontal Alignment : center - Vertical Alignment : center - Input Type : character - Text : - Max. Text Size : 250 - Word wrap : enabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - -Picture p0 - Attributes - ID : 1 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 0 - y coordinate : 0 - Width : 480 - Height : 320 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Picture ID : 0 - -Button b0 - Attributes - ID : 2 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 397 - y coordinate : 8 - Width : 50 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 1 - Back. Color : 6371 - Back. Picture ID (Pressed) : 65535 - Back. Color (Pressed) : 14823 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text :  - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - ID : 12 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 239 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - ID : 13 - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Opacity : 127 - x coordinate : 24 - y coordinate : 261 - Width : 182 - Height : 50 - Effect : load - Effect Priority : 0 - Effect Time : 300 - Fill : solid color - Style : flat - Font ID : 2 - Back. Color : 6371 - Back. Picture ID (Pressed) : 8 - Back. Color (Pressed) : 1024 - Font Color (Unpressed) : 65535 - Font Color (Pressed) : 65535 - Horizontal Alignment : center - Vertical Alignment : center - State : unpressed - Text : - Max. Text Size : 10 - Word wrap : disabled - Horizontal Spacing : 0 - Vertical Spacing : 0 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - ID : 5 - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - ID : 6 - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPosxTempMin1.val) + if(xTempDest2.val>xTempMin1.val) { - xTempDest1.val=xTempDest1.val-xTempStep1.val + xTempDest2.val=xTempDest2.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -672,7 +424,239 @@ Dual-state Button bUp2 prints tSend.txt,0 prints crcval,2 -Dual-state Button bDown2 +Dual-state Button bt0 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va0.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va1.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt2 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va2.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt3 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va3.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt4 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va4.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt5 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va5.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt6 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va6.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button bt7 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : pressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + //craft command + tSend.txt="event,buttonPress2,"+entn.txt + tSend.txt+=",hvac_action,"+va7.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDetail + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + pageIcons.tTmp1.txt=tHeading.txt + pageIcons.tTmp2.txt=entn.txt + page popupThermo + +Dual-state Button btDown Attributes Scope : local Dragging : 0 @@ -684,9 +668,45 @@ Dual-state Button bDown2 Events Touch Press Event - if(xTempDest2.val>xTempMin1.val) + if(xTempDest.val>xTempMin1.val) { - xTempDest2.val=xTempDest2.val-xTempStep1.val + xTempDest.val=xTempDest.val-xTempStep1.val + } + // event,buttonPress2,entn,tempUpd,X + //craft command + tSend.txt="event,buttonPress2," + tSend.txt+=entn.txt+"," + tSend.txt+="tempUpd," + //convert temperature + covx xTempDest.val,tTmp.txt,0,0 + tSend.txt+=tTmp.txt + //send calc crc + btlen tSend.txt,sys0 + crcrest 1,0xffff // reset CRC + crcputh 55 bb + crcputs sys0,2 + crcputs tSend.txt,0 + //send cmd + printh 55 bb + prints sys0,2 + prints tSend.txt,0 + prints crcval,2 + +Dual-state Button btDown1 + Attributes + Scope : local + Dragging : 0 + Disable release event after dragging: 0 + Send Component ID : disabled + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Press Event + if(xTempDest1.val>xTempMin1.val) + { + xTempDest1.val=xTempDest1.val-xTempStep1.val } // event,buttonPress2,entn,tempUpd,X //craft command @@ -747,29 +767,32 @@ Dual-state Button btUp prints tSend.txt,0 prints crcval,2 -Dual-state Button btDown +Dual-state Button btUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed - Text :  + Text :  Max. Text Size : 10 Events Touch Press Event - if(xTempDest.val>xTempMin1.val) + if(xTempDest1.val1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos isn't supported - if(tTmp.txt=="disable") - { - vis t0,0 - vis bColor,0 - vis pColorWheel,0 - }else - { - vis t0,1 - //only enable bColor button if color temp is also supported - if(mode_temp.val==1) - { - vis bColor,1 - } - if(mode.val==0) - { - vis pColorWheel,1 - } - } - // set t0 Color (Localization) - spstr strCommand.txt,t0.txt,"~",8 - // set t4 Temperature (Localization) - spstr strCommand.txt,t4.txt,"~",9 - // set t1 Brightness (Localization) - spstr strCommand.txt,t1.txt,"~",10 - } - if(tInstruction.txt=="time") - { - // get set time to global variable - spstr strCommand.txt,pageIcons.vaTime.txt,"~",1 - } - if(tInstruction.txt=="date") - { - // get set date to global variable - spstr strCommand.txt,pageIcons.vaDate.txt,"~",1 - } - if(tInstruction.txt=="dimmode") - { - // get value - spstr strCommand.txt,tTmp.txt,"~",1 - covx tTmp.txt,dimValue,0,0 - // get value normal - spstr strCommand.txt,tTmp.txt,"~",2 - covx tTmp.txt,dimValueNormal,0,0 - dim=dimValueNormal - // get background color - spstr strCommand.txt,tTmp.txt,"~",3 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultBcoColor,0,0 - } - // get font color - spstr strCommand.txt,tTmp.txt,"~",4 - if(tTmp.txt!="") - { - covx tTmp.txt,defaultFontColor,0,0 - } - } - if(tInstruction.txt=="timeout") - { - //set timeout to global var - 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 - //save third arg if there's one - spstr strCommand.txt,pageIcons.tTmp2.txt,"~",3 - spstr strCommand.txt,pageIcons.tTmp3.txt,"~",4 - //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 payloadLength-1 - bufferPos=0 - if(tId.txt=="pageStartup") - { - page pageStartup - } - if(tId.txt=="screensaver") - { - page screensaver - } - if(tId.txt=="cardEntities") - { - page cardEntities - } - if(tId.txt=="cardGrid") - { - page cardGrid - } - if(tId.txt=="popupLight") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupLight - } - if(tId.txt=="popupShutter") - { - pageIcons.tTmp1.txt=tTmp.txt - page popupShutter - } - if(tId.txt=="popupNotify") - { - page popupNotify - } - if(tId.txt=="cardThermo") - { - page cardThermo - } - if(tId.txt=="cardMedia") - { - page cardMedia - } - if(tId.txt=="cardAlarm") - { - page cardAlarm - } - if(tId.txt=="cardQR") - { - page cardQR - } - if(tId.txt=="cardPower") - { - page cardPower - } - } - // end of user code - udelete payloadLength-1 - bufferPos=0 - } - } - } - } - // next character - bufferPos++ - } - } - -Timer tmCooldown - Attributes - Scope : local - Period (ms): 100 - Enabled : no - - Events - Timer Event - tmCooldown.en=0 - -TouchCap tc0 - Attributes - Scope: local - Value: 0 - - Events - Touch Press Event - sleepValue=0 - diff --git a/HMI/n2t-out/popupNotify.txt b/HMI/n2t-out/popupNotify.txt deleted file mode 100644 index 3c9399fd..00000000 --- a/HMI/n2t-out/popupNotify.txt +++ /dev/null @@ -1,493 +0,0 @@ -Page popupNotify - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Locked : no - Swide up page ID : disabled - Swide down page ID : disabled - Swide left page ID : disabled - Swide right page ID : disabled - - Events - Preinitialize Event - popupNotify.bco=defaultBcoColor - dim=dimValueNormal - vis p0,0 - vis tSend,0 - vis tTmp,0 - vis tInstruction,0 - vis tId,0 - popupNotify.bco=defaultBcoColor - tHeading.bco=defaultBcoColor - b0.bco=defaultBcoColor - tText.bco=defaultBcoColor - b1.bco=defaultBcoColor - b2.bco=defaultBcoColor - tIcon.bco=defaultBcoColor - tTextAlt.bco=defaultBcoColor - tHeading.pco=defaultFontColor - b0.pco=defaultFontColor - tText.pco=defaultFontColor - b1.pco=defaultFontColor - b2.pco=defaultFontColor - vis tIcon,0 - vis tTextAlt,0 - tIcon.pco=defaultFontColor - tTextAlt.pco=defaultFontColor - -Variable (string) strCommand - Attributes - Scope : local - Text : - Max. Text Size: 1000 - -Variable (string) entn - Attributes - Scope : local - Text : - Max. Text Size: 30 - -Variable (int32) vaOldSleepT - Attributes - Scope: local - Value: 0 - -Variable (string) tSend - Attributes - Scope : local - Text : - Max. Text Size: 200 - -Text tTmp - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 10 - -Text tInstruction - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tId - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 20 - -Text tHeading - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 40 - -Text tText - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tTextAlt - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 500 - -Text tIcon - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - Associated Keyboard : none - Text : - Max. Text Size : 250 - -Picture p0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - -Button b0 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text :  - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - tSend.txt="event,buttonPress2,popupNotify,bExit" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b2 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,yes" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Button b1 - Attributes - Scope : local - Dragging : 0 - Disable release event after dragging: 0 - Send Component ID : disabled - State : unpressed - Text : - Max. Text Size : 10 - - Events - Touch Press Event - sleepTimeout=vaOldSleepT.val - //craft command - tSend.txt="event,buttonPress2,"+entn.txt+",notifyAction,no" - //send calc crc - btlen tSend.txt,sys0 - crcrest 1,0xffff // reset CRC - crcputh 55 bb - crcputs sys0,2 - crcputs tSend.txt,0 - //send cmd - printh 55 bb - prints sys0,2 - prints tSend.txt,0 - prints crcval,2 - -Timer tmSleep - Attributes - Scope : local - Period (ms): 1000 - Enabled : yes - - Events - Timer Event - if(sleepTimeout!=0) - { - sleepValue+=1 - if(sleepTimeout<=sleepValue) - { - sleepValue=0 - click b0,1 - click b0,0 - } - } - -Timer tmSerial - Attributes - Scope : local - Period (ms): 50 - Enabled : yes - - Events - Timer Event - // data available - if(usize>1) - { - bufferPos=0 - while(bufferPos1) - { - bufferPos=0 - while(bufferPos