Page popupShutter Attributes Scope : local Dragging : 0 Disable release event after 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 dim=dimValueNormal //get entitiy name tEntity.txt=pageIcons.tTmp1.txt //get entity id entn.txt=pageIcons.tTmp2.txt tIcon1.txt=pageIcons.tTmp3.txt vis p0,0 vis tSend,0 vis tPosHeading,0 vis hPosition,0 vis hTilt,0 vis bTLeft,0 vis bTStop,0 vis bTRight,0 //page open event // event,pageOpenDetail,typeOfPage,tEntityName // craft command tSend.txt="event,pageOpenDetail,popupShutter,"+entn.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 popupShutter.bco=defaultBcoColor b0.bco=defaultBcoColor tIcon1.bco=defaultBcoColor tEntity.bco=defaultBcoColor tInfo1.bco=defaultBcoColor tPosHeading.bco=defaultBcoColor tTiltHeading.bco=defaultBcoColor bUp1.bco=defaultBcoColor bStop1.bco=defaultBcoColor bDown1.bco=defaultBcoColor bTLeft.bco=defaultBcoColor bTStop.bco=defaultBcoColor bTRight.bco=defaultBcoColor b0.pco=defaultFontColor tIcon1.pco=defaultFontColor tEntity.pco=defaultFontColor tInfo1.pco=defaultFontColor tPosHeading.pco=defaultFontColor tTiltHeading.pco=defaultFontColor bUp1.pco=defaultFontColor bStop1.pco=defaultFontColor bDown1.pco=defaultFontColor bTLeft.pco=defaultFontColor bTStop.pco=defaultFontColor bTRight.pco=defaultFontColor if(defaultBcoColor==0) { hTilt.pic=14 hTilt.pic1=13 hTilt.pic2=15 hPosition.pic=14 hPosition.pic1=13 hPosition.pic2=15 } Variable (string) strCommand Attributes Scope : local Text : Max. Text Size: 500 Variable (string) entn Attributes Scope : local Text : Max. Text Size: 80 Variable (string) tInstruction Attributes Scope : local Text : Max. Text Size: 20 Variable (string) tId Attributes Scope : local Text : Max. Text Size: 20 Variable (string) tTmp Attributes Scope : local Text : Max. Text Size: 80 Variable (string) tSend Attributes Scope : local Text : Max. Text Size: 200 Text tEntity Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : tEntity1 Max. Text Size : 25 Text tIcon1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text :  Max. Text Size : 10 Text tPosHeading Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Position Max. Text Size : 30 Text tInfo1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 40 Text tTiltHeading Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 30 Picture p0 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Slider hPosition Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Position : 50 Upper range limit : 100 Lower range limit : 0 Events Touch Release Event // event,buttonPress2,internalNameEntity,positionSlider,50 //craft command tSend.txt="event,buttonPress2,"+entn.txt+",positionSlider," covx hPosition.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Slider hTilt Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Position : 50 Upper range limit : 100 Lower range limit : 0 Events Touch Release Event // event,buttonPress2,internalNameEntity,positionSlider,50 //craft command tSend.txt="event,buttonPress2,"+entn.txt+",tiltSlider," covx hTilt.val,tTmp.txt,0,0 tSend.txt+=tTmp.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button b0 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,popupShutter,bExit" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button bDown1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,"+entn.txt+",down" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button bStop1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,"+entn.txt+",stop" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button bUp1 Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,"+entn.txt+",up" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button bTLeft Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,"+entn.txt+",tiltOpen" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button bTStop Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,"+entn.txt+",tiltStop" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button bTRight Attributes Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled State : unpressed Text :  Max. Text Size : 10 Events Touch Press Event tSend.txt="event,buttonPress2,"+entn.txt+",tiltClose" //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,2 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Timer tmSleep Attributes Scope : local Period (ms): 1000 Enabled : yes Events Timer Event if(sleepTimeout!=0) { sleepValue+=1 if(sleepTimeout<=sleepValue) { sleepValue=0 click b0,1 click b0,0 } } Timer tmSerial Attributes Scope : local Period (ms): 50 Enabled : yes Events Timer Event // data available if(usize>1) { bufferPos=0 while(bufferPos