Page popupLight Attributes ID : 0 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 //get entitiy name tEntity.txt=pageIcons.tTmp1.txt //get entity id entn.txt=pageIcons.tTmp2.txt vis p0,0 vis tSend,0 vis tTmp,0 vis tInstruction,0 vis tItem,0 //page open event // event,pageOpenDetail,typeOfPage,tEntityName // craft command tSend.txt="event,pageOpenDetail,popupLight,"+entn.txt //send calc crc btlen tSend.txt,sys0 crcrest 1,0xffff // reset CRC crcputh 55 bb crcputs sys0,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 //disable brightness by default vis t1,0 vis t2,0 vis hBrightness,0 //disable color temp by default vis t4,0 vis t3,0 vis hTempSlider,0 //disable color wheel components by default vis bColor,0 vis pColorWheel,0 vis t0,0 Variable (string) strCommand Attributes ID : 17 Scope : local Text : Max. Text Size: 50 Variable (string) entn Attributes ID : 21 Scope : local Text : newtxt Max. Text Size: 50 Variable (int32) mode Attributes ID : 23 Scope: local Value: 0 Variable (int32) mode_bright Attributes ID : 24 Scope: local Value: 0 Variable (int32) mode_temp Attributes ID : 25 Scope: local Value: 0 Text tEntity Attributes ID : 3 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 ID : 4 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text :  Max. Text Size : 10 Text t1 Attributes ID : 6 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Brightness Max. Text Size : 15 Text t2 Attributes ID : 9 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text :  Max. Text Size : 10 Text t3 Attributes ID : 10 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text :  Max. Text Size : 10 Text t4 Attributes ID : 11 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Temperature Max. Text Size : 15 Text tSend Attributes ID : 12 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : newtxt Max. Text Size : 100 Text tTmp Attributes ID : 13 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 10 Text tInstruction Attributes ID : 18 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 20 Text tItem Attributes ID : 19 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Max. Text Size : 20 Text t0 Attributes ID : 26 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Associated Keyboard : none Text : Color Max. Text Size : 15 Picture p0 Attributes ID : 1 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Picture pColorWheel Attributes ID : 2 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Events Touch Press Event // event,buttonPress,D,nameEntity,internalNameEntity,1,brightnessSlider,50 //craft command tSend.txt="event,buttonPress,D," tSend.txt+=tEntity.txt+"," tSend.txt+=entn.txt+"," tSend.txt+="1,colorWheel," sys0=tch0 sys0=sys0-pColorWheel.x covx sys0,tTmp.txt,0,0 tSend.txt+=tTmp.txt tSend.txt+="|" sys0=tch1 sys0=sys0-pColorWheel.y covx sys0,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,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Slider hBrightness Attributes ID : 7 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 Press Event // event,buttonPress,D,nameEntity,internalNameEntity,1,brightnessSlider,50 //craft command tSend.txt="event,buttonPress,D," tSend.txt+=tEntity.txt+"," tSend.txt+=entn.txt+"," tSend.txt+="1,brightnessSlider," covx hBrightness.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,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Touch Release Event // event,buttonPress,D,nameEntity,internalNameEntity,1,brightnessSlider,50 //craft command tSend.txt="event,buttonPress,D," tSend.txt+=tEntity.txt+"," tSend.txt+=entn.txt+"," tSend.txt+="1,brightnessSlider," covx hBrightness.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,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Slider hTempSlider Attributes ID : 20 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 Press Event // event,buttonPress,D,nameEntity,internalNameEntity,1,colorTempSlider,50 //craft command tSend.txt="event,buttonPress,D," tSend.txt+=tEntity.txt+"," tSend.txt+=entn.txt+"," tSend.txt+="1,colorTempSlider," covx hTempSlider.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,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Touch Release Event // event,buttonPress,D,nameEntity,internalNameEntity,1,colorTempSlider,50 //craft command tSend.txt="event,buttonPress,D," tSend.txt+=tEntity.txt+"," tSend.txt+=entn.txt+"," tSend.txt+="1,colorTempSlider," covx hTempSlider.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,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Button b0 Attributes ID : 5 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 page cardEntities Button bColor Attributes ID : 22 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 if(mode.val==0) { mode.val=1 vis pColorWheel,1 vis t0,1 //disable brightness vis t1,0 vis t2,0 vis hBrightness,0 //disable color temp vis t4,0 vis t3,0 vis hTempSlider,0 }else { mode.val=0 vis pColorWheel,0 vis t0,0 if(mode_bright.val==1) { //enable brightness vis t1,1 vis t2,1 vis hBrightness,1 } if(mode_temp.val==1) { //enable color temp vis t4,1 vis t3,1 vis hTempSlider,1 } } Dual-state Button btOnOff1 Attributes ID : 8 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 // event,buttonPress,D,nameEntity,internalNameEntity,1,OnOff,1 //craft command tSend.txt="event,buttonPress,D," tSend.txt+=tEntity.txt+"," tSend.txt+=entn.txt+"," tSend.txt+="1,OnOff," covx btOnOff1.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,1 crcputs tSend.txt,0 //send cmd printh 55 bb prints sys0,2 prints tSend.txt,0 prints crcval,2 Timer tmSleep Attributes ID : 15 Scope : local Period (ms): 1000 Enabled : yes Events Timer Event if(sleepTimeout!=0) { sleepValue+=1 if(sleepTimeout<=sleepValue) { screensaver.originPage.val=dp sleepValue=0 page cardEntities } } Timer tmSerial Attributes ID : 16 Scope : local Period (ms): 50 Enabled : yes Events Timer Event // data available if(usize>1) { bufferPos=0 while(bufferPos