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 } vis unavailable,0 vis bt_oscillate,0 Postinitialize Event sendme Variable (string) fansetting Attributes ID : 7 Scope : local Text : Max. Text Size: 255 Variable (string) va0 Attributes ID : 8 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 Text unavailable Attributes ID : 16 Scope : local Dragging : 0 Send Component ID : disabled Associated Keyboard: none Text : Max. Text Size : 1 Text bt_oscillate Attributes ID : 17 Scope : local Dragging : 0 Send Component ID : on press and release Associated Keyboard: none Text :  Max. Text Size : 3 Events Touch Release Event bt_oscillate.pco=31 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 } }