Page popupLight Attributes ID : 0 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 Width : 480 Effect : load Effect Priority : 0 Effect Time : 300 Locked : no Swide up page ID : disabled Swide down page ID : disabled Swide left page ID : disabled Swide right page ID : disabled Fill : solid color Back. Color : 6371 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 tId,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 t0,0 vis pColorWheel,0 //vis t0,0 Variable (string) strCommand Attributes ID : 17 Scope : local Text : Max. Text Size: 100 Variable (string) entn Attributes ID : 21 Scope : local Text : newtxt Max. Text Size: 50 Variable (int32) mode Attributes ID : 23 Scope: local Value: 1 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 Opacity : 127 x coordinate : 92 y coordinate : 21 Width : 263 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 6371 Font Color : 65535 Horizontal Alignment : left Vertical Alignment : center Input Type : character Text : tEntity1 Max. Text Size : 25 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tIcon1 Attributes ID : 4 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 11 y coordinate : 21 Width : 45 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 6371 Font Color : 17299 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text t1 Attributes ID : 6 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 10 y coordinate : 226 Width : 100 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 6371 Font Color : 65535 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : Brightness Max. Text Size : 15 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text t2 Attributes ID : 9 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 10 y coordinate : 267 Width : 45 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 6371 Font Color : 40147 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text t3 Attributes ID : 10 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 10 y coordinate : 181 Width : 45 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 1 Back. Color : 6371 Font Color : 40147 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text t4 Attributes ID : 11 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 9 y coordinate : 143 Width : 116 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 6371 Font Color : 65535 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : Temperature Max. Text Size : 15 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tSend Attributes ID : 12 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 0 y coordinate : 0 Width : 348 Height : 7 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 65535 Font Color : 0 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : newtxt Max. Text Size : 100 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tTmp Attributes ID : 13 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 406 y coordinate : 277 Width : 34 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 65535 Font Color : 0 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tInstruction Attributes ID : 18 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 0 y coordinate : 290 Width : 100 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 65535 Font Color : 0 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : Max. Text Size : 20 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text tId Attributes ID : 19 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 100 y coordinate : 290 Width : 100 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 65535 Font Color : 0 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : Max. Text Size : 20 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Text t0 Attributes ID : 26 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 9 y coordinate : 80 Width : 64 Height : 30 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Associated Keyboard : none Font ID : 0 Back. Color : 6371 Font Color : 65535 Horizontal Alignment : center Vertical Alignment : center Input Type : character Text : Color Max. Text Size : 15 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Picture p0 Attributes ID : 1 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 0 y coordinate : 0 Width : 480 Height : 320 Effect : load Effect Priority : 0 Effect Time : 300 Picture ID : 0 Picture pColorWheel Attributes ID : 2 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 167 y coordinate : 69 Width : 160 Height : 160 Effect : load Effect Priority : 0 Effect Time : 300 Picture ID : 3 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 Opacity : 127 x coordinate : 61 y coordinate : 261 Width : 335 Height : 43 Effect : load Effect Priority : 0 Effect Time : 300 Direction : horizontal Fill : image Cursor width : auto Cursor height : 255 Back. Picture ID : 5 Slided Back. Picture ID : 4 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 Opacity : 127 x coordinate : 61 y coordinate : 178 Width : 335 Height : 44 Effect : load Effect Priority : 0 Effect Time : 300 Direction : horizontal Fill : image Cursor width : auto Cursor height : 255 Back. Picture ID : 8 Slided Back. Picture ID : 10 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 Opacity : 127 x coordinate : 397 y coordinate : 8 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Font ID : 1 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 Font Color (Unpressed) : 65535 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event //page open event // event,pageOpen,cardEntities,pageNumber // craft command // convert pageNumber and write to tTmp covx nPage,tTmp.txt,0,0 tSend.txt="event,pageOpen,"+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 bColor Attributes ID : 22 Scope : local Dragging : 0 Disable release event after dragging: 0 Send Component ID : disabled Opacity : 127 x coordinate : 89 y coordinate : 68 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : solid color Style : flat Font ID : 1 Back. Color : 6371 Back. Picture ID (Pressed) : 65535 Back. Color (Pressed) : 14823 Font Color (Unpressed) : 65535 Font Color (Pressed) : 65535 Horizontal Alignment : center Vertical Alignment : center State : unpressed Text :  Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 Events Touch Press Event if(mode.val==1) { mode.val=0 //enable color wheel 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=1 //disable color wheel 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 Opacity : 127 x coordinate : 370 y coordinate : 79 Width : 50 Height : 50 Effect : load Effect Priority : 0 Effect Time : 300 Fill : image Font ID : 0 Background Picture ID (Unpressed) : 1 Back. Picture ID (Pressed) : 2 Horizontal Alignment : center Vertical Alignment : center State : unpressed Text : Max. Text Size : 10 Word wrap : disabled Horizontal Spacing : 0 Vertical Spacing : 0 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