Page fan Attributes ID : 0 Scope : local Dragging : 0 Send Component ID : disabled Locked : no Swide up page ID : disabled Swide down page ID : disabled Swide left page ID : disabled Swide right page ID: disabled Events Preinitialize Event if(api==0) { page home }else { printh 92 prints "nspanelevent",0 printh 00 prints "{\"page\": \"fan\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0 printh 00 printh FF FF FF } Touch Press Event printh 91 prints "touchevent",0 printh 00 prints rand,0 printh FF FF FF Touch Release Event printh 91 prints "touchevent",0 printh 00 prints rand,0 printh FF FF FF 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 : disabled Associated Keyboard: none Text : Max. Text Size : 10 Text page_label Attributes ID : 2 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Max. Text Size : 25 Text icon_state Attributes ID : 6 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Max. Text Size : 10 Slider fanslider Attributes ID : 3 Scope : local Dragging : 0 Send Component ID: disabled 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 } }