diff --git a/nspanel_eu.HMI b/nspanel_eu.HMI index 68b7bc6..d9df2b8 100644 Binary files a/nspanel_eu.HMI and b/nspanel_eu.HMI differ diff --git a/nspanel_eu.tft b/nspanel_eu.tft index 24d2d21..9c650a3 100644 Binary files a/nspanel_eu.tft and b/nspanel_eu.tft differ diff --git a/nspanel_eu_code/climate.txt b/nspanel_eu_code/climate.txt index 2bd2c83..038d935 100644 --- a/nspanel_eu_code/climate.txt +++ b/nspanel_eu_code/climate.txt @@ -40,6 +40,20 @@ Page climate printh 00 printh FF FF FF + Page Exit Event + if(timer01.en==1) + { + timer01.en=0 + covx climateslider.val,va1.txt,0,0 + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + } + Variable (string) va1 Attributes ID : 27 @@ -289,15 +303,8 @@ Slider climateslider Events Touch Release Event - covx climateslider.val,va1.txt,0,0 target_temp.val=climateslider.val - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF + timer01.en=1 Hotspot decrease_temp Attributes @@ -308,25 +315,11 @@ Hotspot decrease_temp Events Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"decreasetemp\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF + climateslider.val-=1 + target_temp.val=climateslider.val Touch Release Event - climateslider.val-=1 - covx climateslider.val,va1.txt,0,0 - target_temp.val=climateslider.val - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF + timer01.en=1 Hotspot increase_temp Attributes @@ -337,25 +330,11 @@ Hotspot increase_temp Events Touch Press Event - climatesetting.txt="{\"page\": \"climate\", \"component\": \"increasetemp\", \"value\": \"press\"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF + climateslider.val+=1 + target_temp.val=climateslider.val Touch Release Event - climateslider.val+=1 - covx climateslider.val,va1.txt,0,0 - target_temp.val=climateslider.val - climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" - printh 92 - prints "nspanelevent",0 - printh 00 - prints climatesetting.txt,0 - printh 00 - printh FF FF FF + timer01.en=1 Hotspot climate_back Attributes @@ -514,6 +493,25 @@ Timer swipestore swipex=tch0 swipey=tch1 +Timer timer01 + Attributes + ID : 39 + Scope : local + Period (ms): 2000 + Enabled : yes + + Events + Timer Event + timer01.en=0 + covx climateslider.val,va1.txt,0,0 + climatesetting.txt="{\"page\": \"climate\", \"component\": \"climate_position\", \"value\": "+va1.txt+"}" + printh 92 + prints "nspanelevent",0 + printh 00 + prints climatesetting.txt,0 + printh 00 + printh FF FF FF + TouchCap swipe Attributes ID : 1