From 61015f5f2ce3aa01253bd8e005bd4fcb84c0d36a Mon Sep 17 00:00:00 2001 From: joBr99 <29555657+joBr99@users.noreply.github.com> Date: Tue, 13 Dec 2022 20:21:55 +0000 Subject: [PATCH] add delay to temperature buttons on cardThermo #616 (add nextion2text) --- HMI/US/landscape/diff-eu-version.txt | 300 ++++++++++++++++++++++++++ HMI/US/portrait/diff-eu-version.txt | 300 ++++++++++++++++++++++++++ HMI/US/portrait/diff-filtered.txt | 302 ++++++++++++++++++++++++++- HMI/n2t-out-visual/cardThermo.txt | 195 ++++++----------- HMI/n2t-out-visual/nspanel_Stats.txt | 12 +- HMI/n2t-out/cardThermo.txt | 193 ++++++----------- 6 files changed, 1043 insertions(+), 259 deletions(-) diff --git a/HMI/US/landscape/diff-eu-version.txt b/HMI/US/landscape/diff-eu-version.txt index 1b7baaaa..2acd2504 100644 --- a/HMI/US/landscape/diff-eu-version.txt +++ b/HMI/US/landscape/diff-eu-version.txt @@ -13,6 +13,306 @@ │ - // fix touch offset │ - lcd_dev fffb 0002 0000 0020 │ - page pageStartup +│ --- HMI/n2t-out/cardThermo.txt +├── +++ HMI/US/landscape/n2t-out/cardThermo.txt +│ @@ -358,15 +358,36 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest2.val>xTempMin1.val) +│ { +│ xTempDest2.val=xTempDest2.val-xTempStep1.val +│ } +│ - tmSendHighLow.en=1 +│ + // event,buttonPress2,entn,tempUpd,X +│ + //craft command +│ + tSend.txt="event,buttonPress2," +│ + tSend.txt+=entn.txt+"," +│ + tSend.txt+="tempUpdHighLow," +│ + //convert temperature +│ + covx xTempDest1.val,tTmp.txt,0,0 +│ + tSend.txt+=tTmp.txt +│ + tSend.txt+="|" +│ + covx xTempDest2.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 bUp2 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ @@ -376,15 +397,36 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest2.valxTempMin1.val) +│ { +│ xTempDest.val=xTempDest.val-xTempStep1.val +│ } +│ - tmSendTemp.en=1 +│ + // 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 +│ @@ -644,15 +704,36 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest1.val>xTempMin1.val) +│ { +│ xTempDest1.val=xTempDest1.val-xTempStep1.val +│ } +│ - tmSendHighLow.en=1 +│ + // event,buttonPress2,entn,tempUpd,X +│ + //craft command +│ + tSend.txt="event,buttonPress2," +│ + tSend.txt+=entn.txt+"," +│ + tSend.txt+="tempUpdHighLow," +│ + //convert temperature +│ + covx xTempDest1.val,tTmp.txt,0,0 +│ + tSend.txt+=tTmp.txt +│ + tSend.txt+="|" +│ + covx xTempDest2.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 btUp +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ @@ -662,15 +743,33 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest.valxTempMin1.val) +│ { +│ xTempDest2.val=xTempDest2.val-xTempStep1.val +│ } +│ - tmSendHighLow.en=1 +│ + // event,buttonPress2,entn,tempUpd,X +│ + //craft command +│ + tSend.txt="event,buttonPress2," +│ + tSend.txt+=entn.txt+"," +│ + tSend.txt+="tempUpdHighLow," +│ + //convert temperature +│ + covx xTempDest1.val,tTmp.txt,0,0 +│ + tSend.txt+=tTmp.txt +│ + tSend.txt+="|" +│ + covx xTempDest2.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 bUp2 +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ @@ -376,15 +397,36 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest2.valxTempMin1.val) +│ { +│ xTempDest.val=xTempDest.val-xTempStep1.val +│ } +│ - tmSendTemp.en=1 +│ + // 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 +│ @@ -644,15 +704,36 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest1.val>xTempMin1.val) +│ { +│ xTempDest1.val=xTempDest1.val-xTempStep1.val +│ } +│ - tmSendHighLow.en=1 +│ + // event,buttonPress2,entn,tempUpd,X +│ + //craft command +│ + tSend.txt="event,buttonPress2," +│ + tSend.txt+=entn.txt+"," +│ + tSend.txt+="tempUpdHighLow," +│ + //convert temperature +│ + covx xTempDest1.val,tTmp.txt,0,0 +│ + tSend.txt+=tTmp.txt +│ + tSend.txt+="|" +│ + covx xTempDest2.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 btUp +│ Attributes +│ Scope : local +│ Dragging : 0 +│ Disable release event after dragging: 0 +│ Send Component ID : disabled +│ @@ -662,15 +743,33 @@ +│ +│ Events +│ Touch Press Event +│ if(xTempDest.valxTempMin1.val) ++ { ++ xTempDest2.val=xTempDest2.val-xTempStep1.val ++ } ++ tmSendHighLow.en=1 ++ // event,buttonPress2,entn,tempUpd,X ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ tSend.txt+="tempUpdHighLow," ++ //convert temperature ++ covx xTempDest1.val,tTmp.txt,0,0 ++ tSend.txt+=tTmp.txt ++ tSend.txt+="|" ++ covx xTempDest2.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 ++ ++ate Button bUp2 ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++15 +397,36 @@ ++ ++nts ++ Touch Press Event ++ if(xTempDest2.valxTempMin1.val) ++ { ++ xTempDest.val=xTempDest.val-xTempStep1.val ++ } ++ tmSendTemp.en=1 ++ // 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 ++ ++ate Button btDown1 ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++15 +704,36 @@ ++ ++nts ++ Touch Press Event ++ if(xTempDest1.val>xTempMin1.val) ++ { ++ xTempDest1.val=xTempDest1.val-xTempStep1.val ++ } ++ tmSendHighLow.en=1 ++ // event,buttonPress2,entn,tempUpd,X ++ //craft command ++ tSend.txt="event,buttonPress2," ++ tSend.txt+=entn.txt+"," ++ tSend.txt+="tempUpdHighLow," ++ //convert temperature ++ covx xTempDest1.val,tTmp.txt,0,0 ++ tSend.txt+=tTmp.txt ++ tSend.txt+="|" ++ covx xTempDest2.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 ++ ++ate Button btUp ++ributes ++ Scope : local ++ Dragging : 0 ++ Disable release event after dragging: 0 ++ Send Component ID : disabled ++15 +743,33 @@ ++ ++nts ++ Touch Press Event ++ if(xTempDest.val