diff --git a/advanced/hmi/nspanel_CJK_eu.HMI b/advanced/hmi/nspanel_CJK_eu.HMI new file mode 100644 index 0000000..e57d2fc Binary files /dev/null and b/advanced/hmi/nspanel_CJK_eu.HMI differ diff --git a/advanced/hmi/nspanel_CJK_eu_code/Program.s.txt b/advanced/hmi/nspanel_CJK_eu_code/Program.s.txt new file mode 100644 index 0000000..60e14a3 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/Program.s.txt @@ -0,0 +1,26 @@ +Program.s + //The following code is only run once when power on, and is generally used for global variable definition and power on initialization data + int sys0=0,sys1=0,sys2=0,swipex=0,swipey=0,swipex2=0,swipey2=0,swipec=0,swipec2=0,swipedx=100,swipedy=100 //At present, the definition of global variable only supports 4-byte signed integer (int), and other types of global quantity declaration are not supported. If you want to use string type, you can use variable control in the page to implement + int r=0,g=0,b=0 + int h=0,s=0,v=0 + int p=0,q=0,t=0,f=0 + int dimdelta=0 + int api=0 // 0 = disconnected from HA, 1 = connected to HA + int is_alarm=0,is_entities=0,is_qrcode=0,is_notification=0 + int brightness=100,brightness_dim=40 + int display_mode=1 // 1 = EU, 2 = US, 3 = US landscape + int charset=1 // 1 = International (original), 2 = CJK + //bauds=115200//Configure baudrate + recmod=0//Serial data parsing mode:0-Passive mode;1-Active mode + printh 00 00 00 ff ff ff 88 ff ff ff//Output power on information to serial port + if(display_mode==1) + { + lcd_dev fffb 0002 0000 0020// Fix touch offset for EU Version + } + printh 92 + prints "currentpage",0 + printh 00 + prints "",0 + printh 00 + printh FF FF FF + page 8//Power on start page boot diff --git a/advanced/hmi/nspanel_CJK_eu_code/alarm.txt b/advanced/hmi/nspanel_CJK_eu_code/alarm.txt new file mode 100644 index 0000000..95dc32d --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/alarm.txt @@ -0,0 +1,433 @@ +Page alarm + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + vis bt_home,0 + vis bt_away,0 + vis bt_night,0 + vis bt_vacat,0 + vis bt_bypass,0 + } + +Variable (string) lastclick + Attributes + ID : 3 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) back_page + Attributes + ID : 4 + Scope : local + Text : home + Max. Text Size: 15 + +Variable (string) code_format + Attributes + ID : 29 + Scope : local + Text : + Max. Text Size: 15 + +Variable (string) code_arm_req + Attributes + ID : 30 + Scope : local + Text : + Max. Text Size: 1 + +Text page_label + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : Alarm Control Panel + Max. Text Size : 100 + +Text icon_state + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text :  + Max. Text Size : 10 + +Text bt_home_text + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Home + Max. Text Size : 22 + +Text bt_away_text + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Away + Max. Text Size : 22 + +Text bt_night_text + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Night + Max. Text Size : 22 + +Text bt_vacat_text + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Vacation + Max. Text Size : 22 + +Text bt_bypass_text + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Bypass + Max. Text Size : 22 + +Text bt_disarm_text + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : Disarm + Max. Text Size : 22 + +Text bt_home_icon + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text bt_away_icon + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text bt_night_icon + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text bt_vacat_icon + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text bt_bypass_icon + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text bt_disarm_icon + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Picture bt_home_pic + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_away_pic + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_night_pic + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_vacat_pic + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_bypass_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Picture bt_disarm_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: disabled + +Button button_back + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + if(back_page.txt=="buttonpage01") + { + page buttonpage01 + }else if(back_page.txt=="buttonpage02") + { + page buttonpage02 + }else if(back_page.txt=="buttonpage03") + { + page buttonpage03 + }else if(back_page.txt=="buttonpage04") + { + page buttonpage04 + }else + { + page home + } + +Hotspot bt_home + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + bt_home_pic.pic=44 + bt_home_text.bco=65024 + bt_home_text.pco=0 + bt_home_icon.bco=65024 + bt_home_icon.pco=0 + + Touch Release Event + lastclick.txt="{\"page\": \"alarm\", \"key\": \"home\", \"value\": \"click\", \"mui\": \""+bt_home_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot bt_away + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + bt_away_pic.pic=44 + bt_away_text.bco=65024 + bt_away_text.pco=0 + bt_away_icon.bco=65024 + bt_away_icon.pco=0 + + Touch Release Event + lastclick.txt="{\"page\": \"alarm\", \"key\": \"away\", \"value\": \"click\", \"mui\": \""+bt_away_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot bt_night + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + bt_night_pic.pic=44 + bt_night_text.bco=65024 + bt_night_text.pco=0 + bt_night_icon.bco=65024 + bt_night_icon.pco=0 + + Touch Release Event + lastclick.txt="{\"page\": \"alarm\", \"key\": \"night\", \"value\": \"click\", \"mui\": \""+bt_night_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot bt_vacat + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + bt_vacat_pic.pic=44 + bt_vacat_text.bco=65024 + bt_vacat_text.pco=0 + bt_vacat_icon.bco=65024 + bt_vacat_icon.pco=0 + + Touch Release Event + lastclick.txt="{\"page\": \"alarm\", \"key\": \"vacation\", \"value\": \"click\", \"mui\": \""+bt_vacat_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot bt_bypass + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + bt_bypass_pic.pic=44 + bt_bypass_text.bco=65024 + bt_bypass_text.pco=0 + bt_bypass_icon.bco=65024 + bt_bypass_icon.pco=0 + + Touch Release Event + lastclick.txt="{\"page\": \"alarm\", \"key\": \"bypass\", \"value\": \"click\", \"mui\": \""+bt_bypass_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Hotspot bt_disarm + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + bt_disarm_pic.pic=44 + bt_disarm_text.bco=65024 + bt_disarm_text.pco=0 + bt_disarm_icon.bco=65024 + bt_disarm_icon.pco=0 + + Touch Release Event + lastclick.txt="{\"page\": \"alarm\", \"key\": \"disarm\", \"value\": \"click\", \"mui\": \""+bt_disarm_text.txt+"\", \"code_format\": \""+code_format.txt+"\", \"code_arm_req\": \""+code_arm_req.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Timer wakeup_timer + Attributes + ID : 32 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dim0) + { + confirm.body.txt=button01text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button02 + Attributes + ID : 45 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button02" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&2 + if(sys0>0) + { + confirm.body.txt=button02text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button03 + Attributes + ID : 46 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button03" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&4 + if(sys0>0) + { + confirm.body.txt=button03text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button04 + Attributes + ID : 47 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button04" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&8 + if(sys0>0) + { + confirm.body.txt=button04text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button05 + Attributes + ID : 48 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&16 + if(sys0>0) + { + confirm.body.txt=button05text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button06 + Attributes + ID : 49 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&32 + if(sys0>0) + { + confirm.body.txt=button06text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button07 + Attributes + ID : 50 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button07" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&64 + if(sys0>0) + { + confirm.body.txt=button07text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button08 + Attributes + ID : 51 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button08" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&128 + if(sys0>0) + { + confirm.body.txt=button08text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer click_timer + Attributes + ID : 8 + Scope : local + Period (ms): 800 + Enabled : no + + Events + Timer Event + lastclick.txt="{\"page\": \"buttonpage01\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + click_timer.en=0 + +Timer wakeup_timer + Attributes + ID : 10 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page home + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/buttonpage02.txt b/advanced/hmi/nspanel_CJK_eu_code/buttonpage02.txt new file mode 100644 index 0000000..ad43ae9 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/buttonpage02.txt @@ -0,0 +1,792 @@ +Page buttonpage02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + vis 255,0 + vis button_back,1 + vis page_index,1 + } + +Variable (string) lastclick + Attributes + ID : 4 + Scope : local + Text : + Max. Text Size: 100 + +Variable (string) click_comp + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 8 + +Variable (string) page_name + Attributes + ID : 9 + Scope : local + Text : buttonpage02 + Max. Text Size: 12 + +Variable (int32) confirm + Attributes + ID : 11 + Scope: local + Value: 0 + +Text page_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text page_index + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text button01pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button02pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button03pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button04pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button05pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button06pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button07pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button08pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button01text + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button02text + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button03text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button04text + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button05text + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button06text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button07text + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button08text + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button01icon + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02bri + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03bri + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04bri + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05bri + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06bri + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07bri + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08bri + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Button button_back + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button01" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&1 + if(sys0>0) + { + confirm.body.txt=button01text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button02 + Attributes + ID : 45 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button02" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&2 + if(sys0>0) + { + confirm.body.txt=button02text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button03 + Attributes + ID : 46 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button03" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&4 + if(sys0>0) + { + confirm.body.txt=button03text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button04 + Attributes + ID : 47 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button04" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&8 + if(sys0>0) + { + confirm.body.txt=button04text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button05 + Attributes + ID : 48 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&16 + if(sys0>0) + { + confirm.body.txt=button05text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button06 + Attributes + ID : 49 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&32 + if(sys0>0) + { + confirm.body.txt=button06text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button07 + Attributes + ID : 50 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button07" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&64 + if(sys0>0) + { + confirm.body.txt=button07text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button08 + Attributes + ID : 51 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button08" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&128 + if(sys0>0) + { + confirm.body.txt=button08text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer click_timer + Attributes + ID : 8 + Scope : local + Period (ms): 800 + Enabled : no + + Events + Timer Event + lastclick.txt="{\"page\": \"buttonpage01\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + click_timer.en=0 + +Timer wakeup_timer + Attributes + ID : 10 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page buttonpage01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/buttonpage03.txt b/advanced/hmi/nspanel_CJK_eu_code/buttonpage03.txt new file mode 100644 index 0000000..5cd0e57 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/buttonpage03.txt @@ -0,0 +1,792 @@ +Page buttonpage03 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + vis 255,0 + vis button_back,1 + vis page_index,1 + } + +Variable (string) lastclick + Attributes + ID : 4 + Scope : local + Text : + Max. Text Size: 100 + +Variable (string) click_comp + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 8 + +Variable (string) page_name + Attributes + ID : 9 + Scope : local + Text : buttonpage03 + Max. Text Size: 12 + +Variable (int32) confirm + Attributes + ID : 11 + Scope: local + Value: 0 + +Text page_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text page_index + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text button01pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button02pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button03pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button04pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button05pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button06pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button07pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button08pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button01text + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button02text + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button03text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button04text + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button05text + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button06text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button07text + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button08text + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button01icon + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02bri + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03bri + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04bri + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05bri + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06bri + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07bri + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08bri + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Button button_back + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button01" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&1 + if(sys0>0) + { + confirm.body.txt=button01text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button02 + Attributes + ID : 45 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button02" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&2 + if(sys0>0) + { + confirm.body.txt=button02text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button03 + Attributes + ID : 46 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button03" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&4 + if(sys0>0) + { + confirm.body.txt=button03text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button04 + Attributes + ID : 47 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button04" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&8 + if(sys0>0) + { + confirm.body.txt=button04text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button05 + Attributes + ID : 48 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&16 + if(sys0>0) + { + confirm.body.txt=button05text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button06 + Attributes + ID : 49 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&32 + if(sys0>0) + { + confirm.body.txt=button06text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button07 + Attributes + ID : 50 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button07" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&64 + if(sys0>0) + { + confirm.body.txt=button07text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button08 + Attributes + ID : 51 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button08" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&128 + if(sys0>0) + { + confirm.body.txt=button08text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer click_timer + Attributes + ID : 8 + Scope : local + Period (ms): 800 + Enabled : no + + Events + Timer Event + lastclick.txt="{\"page\": \"buttonpage01\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + click_timer.en=0 + +Timer wakeup_timer + Attributes + ID : 10 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page buttonpage02 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/buttonpage04.txt b/advanced/hmi/nspanel_CJK_eu_code/buttonpage04.txt new file mode 100644 index 0000000..9434374 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/buttonpage04.txt @@ -0,0 +1,792 @@ +Page buttonpage04 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + vis 255,0 + vis button_back,1 + vis page_index,1 + } + +Variable (string) lastclick + Attributes + ID : 4 + Scope : local + Text : + Max. Text Size: 100 + +Variable (string) click_comp + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 8 + +Variable (string) page_name + Attributes + ID : 9 + Scope : local + Text : buttonpage04 + Max. Text Size: 12 + +Variable (int32) confirm + Attributes + ID : 11 + Scope: local + Value: 0 + +Text page_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text page_index + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text button01pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button02pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button03pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button04pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button05pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button06pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button07pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button08pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 0 + +Text button01text + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button02text + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button03text + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button04text + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button05text + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button06text + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button07text + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button08text + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 22 + +Text button01icon + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button02icon + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button03icon + Attributes + ID : 30 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button04icon + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button05icon + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button06icon + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button07icon + Attributes + ID : 34 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button08icon + Attributes + ID : 35 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text button01bri + Attributes + ID : 36 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button02bri + Attributes + ID : 37 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button03bri + Attributes + ID : 38 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button04bri + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button05bri + Attributes + ID : 40 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button06bri + Attributes + ID : 41 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button07bri + Attributes + ID : 42 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Text button08bri + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID : disabled + Associated Keyboard: none + Text : + Max. Text Size : 4 + +Button button_back + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + page home + +Hotspot button01 + Attributes + ID : 44 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button01" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&1 + if(sys0>0) + { + confirm.body.txt=button01text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button02 + Attributes + ID : 45 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button02" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&2 + if(sys0>0) + { + confirm.body.txt=button02text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button03 + Attributes + ID : 46 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button03" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&4 + if(sys0>0) + { + confirm.body.txt=button03text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button04 + Attributes + ID : 47 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button04" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&8 + if(sys0>0) + { + confirm.body.txt=button04text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button05 + Attributes + ID : 48 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&16 + if(sys0>0) + { + confirm.body.txt=button05text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button06 + Attributes + ID : 49 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&32 + if(sys0>0) + { + confirm.body.txt=button06text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button07 + Attributes + ID : 50 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button07" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&64 + if(sys0>0) + { + confirm.body.txt=button07text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Hotspot button08 + Attributes + ID : 51 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + click_comp.txt="button08" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + sys0=confirm.val&128 + if(sys0>0) + { + confirm.body.txt=button08text.txt + confirm.page_id.val=dp + confirm.page_name.txt=page_name.txt + confirm.component.txt=click_comp.txt + page confirm + }else + { + lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + } + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer click_timer + Attributes + ID : 8 + Scope : local + Period (ms): 800 + Enabled : no + + Events + Timer Event + lastclick.txt="{\"page\": \"buttonpage01\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + click_timer.en=0 + +Timer wakeup_timer + Attributes + ID : 10 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page buttonpage03 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/climate.txt b/advanced/hmi/nspanel_CJK_eu_code/climate.txt new file mode 100644 index 0000000..af6f3ae --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/climate.txt @@ -0,0 +1,714 @@ +Page climate + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==1||embedded.val==1) + { + sendme + vis target_icon,0 + vis target_high,0 + vis target_low,0 + vis current_temp,0 + vis current_icon,0 + vis slider_high,0 + vis slider_low,0 + vis button01,0 + vis button02,0 + vis button03,0 + vis button04,0 + vis button05,0 + vis button06,0 + vis button07,0 + }else + { + page home + } + + Page Exit Event + if(timer01.en==1) + { + timer01.en=0 + covx temp_number.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 : 25 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) climatesetting + Attributes + ID : 26 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) lastclick + Attributes + ID : 27 + Scope : local + Text : + Max. Text Size: 255 + +Variable (int32) temp_offset + Attributes + ID : 29 + Scope: local + Value: 0 + +Variable (int32) temp_step + Attributes + ID : 30 + Scope: local + Value: 0 + +Variable (int32) temp_number + Attributes + ID : 34 + Scope: local + Value: 0 + +Variable (int32) va0 + Attributes + ID : 35 + Scope: local + Value: 0 + +Variable (string) back_page + Attributes + ID : 36 + Scope : local + Text : home + Max. Text Size: 15 + +Variable (int32) embedded + Attributes + ID : 37 + Scope: global + Value: 0 + +Variable (string) va2 + Attributes + ID : 38 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) click_comp + Attributes + ID : 40 + Scope : local + Text : + Max. Text Size: 8 + +Variable (int32) single_slider + Attributes + ID : 44 + Scope: local + Value: 1 + +Variable (int32) active_slider + Attributes + ID : 45 + Scope: local + Value: 1 + +Text current_temp + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text page_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text current_icon + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text target_icon + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value01_icon + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value01 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text value02_icon + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value02 + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text value03_icon + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03 + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text value04_icon + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value04 + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 6 + +Text button01 + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"auto\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button02 + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat_cool\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button03 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"heat\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button04 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"cool\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button05 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"dry\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button06 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"fan_only\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button07 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Release Event + covx embedded.val,va2.txt,0,0 + lastclick.txt="{\"page\": \"climate\", \"key\": \"hvac_mode\", \"value\": \"off\", \"embedded\": "+va2.txt+"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + +Text button08 + Attributes + ID : 31 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Press Event + click_comp.txt="button08" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button09 + Attributes + ID : 32 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Press Event + click_comp.txt="button09" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"climate\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text target_high + Attributes + ID : 33 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text target_low + Attributes + ID : 46 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Slider slider_high + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: on press and release + Position : 20 + Upper range limit: 40 + Lower range limit: 0 + + Events + Touch Release Event + temp_number.val=slider_high.val*temp_step.val + temp_number.val+=temp_offset.val + va0.val=temp_number.val/10 + covx va0.val,target_high.txt,0,0 + va0.val=temp_number.val%10 + covx va0.val,va1.txt,0,0 + target_high.txt+="."+va1.txt + timer01.en=1 + +Slider slider_low + Attributes + ID : 43 + Scope : local + Dragging : 0 + Send Component ID: on press and release + Position : 20 + Upper range limit: 40 + Lower range limit: 0 + + Events + Touch Release Event + temp_number.val=slider_high.val*temp_step.val + temp_number.val+=temp_offset.val + va0.val=temp_number.val/10 + covx va0.val,target_high.txt,0,0 + va0.val=temp_number.val%10 + covx va0.val,va1.txt,0,0 + target_high.txt+="."+va1.txt + timer01.en=1 + +Button button_back + Attributes + ID : 39 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + if(back_page.txt=="buttonpage01") + { + page buttonpage01 + }else if(back_page.txt=="buttonpage02") + { + page buttonpage02 + }else if(back_page.txt=="buttonpage03") + { + page buttonpage03 + }else if(back_page.txt=="buttonpage04") + { + page buttonpage04 + }else + { + page home + } + +Hotspot decrease_temp + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + if(slider_high.val>0) + { + slider_high.val-- + temp_number.val=slider_high.val*temp_step.val + temp_number.val+=temp_offset.val + va0.val=temp_number.val/10 + covx va0.val,target_high.txt,0,0 + va0.val=temp_number.val%10 + covx va0.val,va1.txt,0,0 + target_high.txt+="."+va1.txt + } + + Touch Release Event + timer01.en=1 + +Hotspot increase_temp + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + if(slider_high.valswipedx) + { + //page + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/confirm.txt b/advanced/hmi/nspanel_CJK_eu_code/confirm.txt new file mode 100644 index 0000000..93bb38a --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/confirm.txt @@ -0,0 +1,151 @@ +Page confirm + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + } + +Variable (int32) page_id + Attributes + ID : 3 + Scope: global + Value: 0 + +Variable (string) aux + Attributes + ID : 5 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) page_name + Attributes + ID : 9 + Scope : global + Text : + Max. Text Size: 12 + +Variable (string) component + Attributes + ID : 10 + Scope : global + Text : + Max. Text Size: 10 + +Text t0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text title + Attributes + ID : 4 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : Please confirm + Max. Text Size : 100 + +Text body + Attributes + ID : 8 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : Please confirm + Max. Text Size : 255 + +Button bclose + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Release Event + page page_id.val + +Button bt_accept + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Release Event + aux.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+component.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints aux.txt,0 + printh 00 + printh FF FF FF + page page_id.val + +Button bt_clear + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Release Event + page page_id.val + +Timer wakeup_timer + Attributes + ID : 11 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page entitypage04 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + page entitypage03 + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page entitypage04 + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/entitypage02.txt b/advanced/hmi/nspanel_CJK_eu_code/entitypage02.txt new file mode 100644 index 0000000..b4a4676 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/entitypage02.txt @@ -0,0 +1,376 @@ +Page entitypage02 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + } + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text entity02_label + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text value06_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value07_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value08_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value01_pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value02 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value03 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value04 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value05 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value07 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value08 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text page_index + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Button button_back + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + page home + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer wakeup_timer + Attributes + ID : 30 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page entitypage01 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/entitypage03.txt b/advanced/hmi/nspanel_CJK_eu_code/entitypage03.txt new file mode 100644 index 0000000..0c283e8 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/entitypage03.txt @@ -0,0 +1,376 @@ +Page entitypage03 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + } + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text entity03_label + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text value06_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value07_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value08_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value01_pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value02 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value03 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value04 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value05 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value07 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value08 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text page_index + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Button button_back + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + page home + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer wakeup_timer + Attributes + ID : 30 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page entitypage02 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + page entitypage01 + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/entitypage04.txt b/advanced/hmi/nspanel_CJK_eu_code/entitypage04.txt new file mode 100644 index 0000000..80fe547 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/entitypage04.txt @@ -0,0 +1,376 @@ +Page entitypage04 + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + } + +Text value01_label + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value05_label + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value04_label + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value02_label + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value03_label + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text entity04_label + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text value06_label + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value07_label + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value08_label + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text value01_pic + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value02_pic + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value03_pic + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value04_pic + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value05_pic + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value06_pic + Attributes + ID : 17 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value07_pic + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value08_pic + Attributes + ID : 19 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + +Text value01 + Attributes + ID : 20 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value02 + Attributes + ID : 21 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value03 + Attributes + ID : 22 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value04 + Attributes + ID : 23 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value05 + Attributes + ID : 24 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value06 + Attributes + ID : 25 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value07 + Attributes + ID : 26 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text value08 + Attributes + ID : 27 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 30 + +Text page_index + Attributes + ID : 29 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Button button_back + Attributes + ID : 28 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 3 + + Events + Touch Press Event + page home + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer wakeup_timer + Attributes + ID : 30 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dimswipedx) + { + page entitypage03 + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + page entitypage01 + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/fan.txt b/advanced/hmi/nspanel_CJK_eu_code/fan.txt new file mode 100644 index 0000000..1a6f737 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/fan.txt @@ -0,0 +1,399 @@ +Page fan + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page home + }else + { + sendme + } + +Variable (string) fansetting + Attributes + ID : 7 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) back_page + Attributes + ID : 8 + Scope : local + Text : home + Max. Text Size: 15 + +Variable (string) va0 + Attributes + ID : 9 + Scope : local + Text : + Max. Text Size: 10 + +Text fan_value + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text page_label + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 100 + +Text icon_state + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Slider fanslider + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: on press and release + Position : 0 + Upper range limit: 4 + Lower range limit: 0 + + Events + Touch Release Event + sys0=100*fanslider.val/fanslider.maxval + covx sys0,va0.txt,0,0 + fan_value.txt=va0.txt+"%" + if(fanslider.val>fanslider.minval) + { + button_off.pco=59164 + button_down.pco=59164 + }else + { + button_off.pco=10597 + button_down.pco=10597 + } + if(fanslider.valfanslider.minval) + { + button_off.pco=59164 + button_down.pco=59164 + }else + { + button_off.pco=10597 + button_down.pco=10597 + } + if(fanslider.val=5) + { + fanslider.val++ + } + sys0=100*fanslider.val/fanslider.maxval + covx sys0,va0.txt,0,0 + fan_value.txt=va0.txt+"%" + if(fanslider.val>fanslider.minval) + { + button_off.pco=59164 + button_down.pco=59164 + }else + { + button_off.pco=10597 + button_down.pco=10597 + } + if(fanslider.valfanslider.minval) + { + fanslider.val-- + sys0=100*fanslider.val/fanslider.maxval + covx sys0,va0.txt,0,0 + fan_value.txt=va0.txt+"%" + } + if(fanslider.val>fanslider.minval) + { + button_off.pco=59164 + button_down.pco=59164 + }else + { + button_off.pco=10597 + button_down.pco=10597 + } + if(fanslider.valfanslider.minval) + { + button_off.pco=59164 + button_down.pco=59164 + }else + { + button_off.pco=10597 + button_down.pco=10597 + } + if(fanslider.valswipedx) + { + //page + } + // Right to Left + swipec2=0-swipedx + if(swipec100) + { + //page + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100) + { + //page + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/home.txt b/advanced/hmi/nspanel_CJK_eu_code/home.txt new file mode 100644 index 0000000..426d60f --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/home.txt @@ -0,0 +1,712 @@ +Page home + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + sendme + vis bt_notific,is_notification + vis bt_qrcode,is_qrcode + vis bt_entities,is_entities + vis bt_alarm,is_alarm + if(display_mode==3) + { + vis left_bt_text,0 + vis right_bt_text,0 + } + +Variable (string) lastclick + Attributes + ID : 33 + Scope : local + Text : + Max. Text Size: 100 + +Variable (string) click_comp + Attributes + ID : 41 + Scope : local + Text : + Max. Text Size: 8 + +Text time + Attributes + ID : 3 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + + Events + Touch Press Event + settings_timer.en=1 + + Touch Release Event + settings_timer.en=0 + +Text current_temp + Attributes + ID : 4 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 8 + + Events + Touch Release Event + printh 92 + prints "localevent",0 + printh 00 + prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0 + printh 00 + printh FF FF FF + +Text outdoor_temp + Attributes + ID : 5 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 8 + +Text date + Attributes + ID : 6 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 25 + + Events + Touch Press Event + settings_timer.en=1 + + Touch Release Event + settings_timer.en=0 + +Text value01_state + Attributes + ID : 8 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text left_bt_text + Attributes + ID : 9 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text right_bt_text + Attributes + ID : 10 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 20 + +Text icon_top_01 + Attributes + ID : 11 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_02 + Attributes + ID : 12 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_03 + Attributes + ID : 13 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_04 + Attributes + ID : 14 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_05 + Attributes + ID : 15 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_06 + Attributes + ID : 16 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_07 + Attributes + ID : 17 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_08 + Attributes + ID : 18 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_09 + Attributes + ID : 19 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text icon_top_10 + Attributes + ID : 20 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text value01_icon + Attributes + ID : 21 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text value03_state + Attributes + ID : 22 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text value03_icon + Attributes + ID : 23 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text value02_icon + Attributes + ID : 24 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + +Text value02_state + Attributes + ID : 25 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text wifi_icon + Attributes + ID : 26 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 5 + + Events + Touch Press Event + settings_timer.en=1 + + Touch Release Event + settings_timer.en=0 + +Text indoortempicon + Attributes + ID : 27 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Release Event + printh 92 + prints "localevent",0 + printh 00 + prints "{\"page\": \"home\", \"component\": \"climate\", \"event\": \"click\"}",0 + printh 00 + printh FF FF FF + +Text bt_notific + Attributes + ID : 28 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Release Event + if(api==1) + { + page notification + } + +Text bt_qrcode + Attributes + ID : 29 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Release Event + page qrcode + +Text bt_entities + Attributes + ID : 30 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Release Event + if(api==1) + { + page entitypage01 + } + +Text bt_alarm + Attributes + ID : 31 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Release Event + if(api==1) + { + page alarm + } + +Text meridiem + Attributes + ID : 32 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + + Events + Touch Press Event + settings_timer.en=1 + + Touch Release Event + settings_timer.en=0 + +Text button01 + Attributes + ID : 38 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button01" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button02 + Attributes + ID : 39 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button02" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button03 + Attributes + ID : 40 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button03" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button04 + Attributes + ID : 43 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button04" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button05 + Attributes + ID : 44 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button05" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Text button06 + Attributes + ID : 45 + Scope : global + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 3 + + Events + Touch Press Event + click_comp.txt="button06" + click_timer.en=1 + + Touch Release Event + if(click_timer.en==1) + { + click_timer.en=0 + lastclick.txt="{\"page\": \"home\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints lastclick.txt,0 + printh 00 + printh FF FF FF + } + +Picture weather + Attributes + ID : 7 + Scope : global + Dragging : 0 + Send Component ID: on press and release + + Events + Touch Press Event + if(api==1) + { + page weather01 + } + +Dual-state Button left_bt_pic + Attributes + ID : 35 + Scope : global + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : + Max. Text Size : 0 + +Dual-state Button right_bt_pic + Attributes + ID : 36 + Scope : global + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : + Max. Text Size : 0 + +Timer swipestore + Attributes + ID : 2 + Scope : local + Period (ms): 50 + Enabled : no + + Events + Timer Event + swipex=tch0 + swipey=tch1 + +Timer settings_timer + Attributes + ID : 34 + Scope : local + Period (ms): 1000 + Enabled : no + + Events + Timer Event + page settings + +Timer wakeup_timer + Attributes + ID : 37 + Scope : local + Period (ms): 50 + Enabled : yes + + Events + Timer Event + if(dimswipedx&&api==1) + { + page buttonpage04 + } + // Right to Left + swipec2=0-swipedx + if(swipec100&&api==1) + { + page buttonpage02 + } + // Down to Up + swipec2=0-swipedy + if(swipec<-100&&api==1) + { + page buttonpage03 + } + } + diff --git a/advanced/hmi/nspanel_CJK_eu_code/keyb_num.txt b/advanced/hmi/nspanel_CJK_eu_code/keyb_num.txt new file mode 100644 index 0000000..aadd844 --- /dev/null +++ b/advanced/hmi/nspanel_CJK_eu_code/keyb_num.txt @@ -0,0 +1,317 @@ +Page keyb_num + Attributes + ID : 0 + Scope : local + Dragging : 0 + Send Component ID : on press and release + 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 + if(api==0) + { + page page_id.val + }else + { + sendme + } + +Variable (int32) page_id + Attributes + ID : 17 + Scope: local + Value: 0 + +Variable (string) key + Attributes + ID : 19 + Scope : local + Text : + Max. Text Size: 10 + +Variable (string) domain + Attributes + ID : 20 + Scope : local + Text : alarm + Max. Text Size: 10 + +Variable (string) aux + Attributes + ID : 21 + Scope : local + Text : + Max. Text Size: 255 + +Variable (string) value + Attributes + ID : 22 + Scope : local + Text : + Max. Text Size: 10 + +Text t0 + Attributes + ID : 1 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 10 + +Text pin + Attributes + ID : 2 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : + Max. Text Size : 60 + +Text title + Attributes + ID : 18 + Scope : local + Dragging : 0 + Send Component ID : on press and release + Associated Keyboard: none + Text : Alarm + Max. Text Size : 30 + +Button b1 + Attributes + ID : 3 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 1 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b1.txt + +Button bclose + Attributes + ID : 4 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text :  + Max. Text Size : 10 + + Events + Touch Release Event + page page_id.val + +Button b2 + Attributes + ID : 5 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 2 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b2.txt + +Button b3 + Attributes + ID : 6 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 3 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b3.txt + +Button b4 + Attributes + ID : 7 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 4 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b4.txt + +Button b5 + Attributes + ID : 8 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 5 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b5.txt + +Button b6 + Attributes + ID : 9 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 6 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b6.txt + +Button b7 + Attributes + ID : 10 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 7 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b7.txt + +Button b8 + Attributes + ID : 11 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 8 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b8.txt + +Button b9 + Attributes + ID : 12 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 9 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b9.txt + +Button bclear + Attributes + ID : 13 + Scope : local + Dragging : 0 + Send Component ID: on press + State : unpressed + Text : < + Max. Text Size : 5 + + Events + Touch Release Event + pin.txt="" + +Button b0 + Attributes + ID : 14 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : 0 + Max. Text Size : 1 + + Events + Touch Release Event + pin.txt+=b0.txt + +Button benter + Attributes + ID : 15 + Scope : local + Dragging : 0 + Send Component ID: on press + State : unpressed + Text : OK + Max. Text Size : 3 + + Events + Touch Release Event + aux.txt="{\"page\": \"keyb_num\", \"key\": \""+key.txt+"\", \"value\": \""+value.txt+"\", \"pin\": \""+pin.txt+"\", \"base_domain\": \""+domain.txt+"\"}" + printh 92 + prints "localevent",0 + printh 00 + prints aux.txt,0 + printh 00 + printh FF FF FF + +Button bview + Attributes + ID : 16 + Scope : local + Dragging : 0 + Send Component ID: on press and release + State : unpressed + Text : O + Max. Text Size : 3 + + Events + Touch Press Event + if(pin.pw==1) + { + pin.pw=0 + }else + { + pin.pw=1 + } + +Timer wakeup_timer + Attributes + ID : 23 + Scope : local + Period (ms): 100 + Enabled : yes + + Events + Timer Event + if(dim