Page entitypage02
    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
            sys0=is_entitypage01+is_entitypage02+is_entitypage03+is_entitypage04
            if(sys0>1)
            {
                if(is_entitypage01==1)
                {
                    page_index.txt+="â—‹"
                }
                page_index.txt+="â—"
                if(is_entitypage03==1)
                {
                    page_index.txt+="â—‹"
                }
                if(is_entitypage04==1)
                {
                    page_index.txt+="â—‹"
                }
            }else
            {
                vis page_index,0
            }
            printh 92
            prints "current_page",0
            printh 00
            prints "entitypage02",0
            printh 00
            printh FF FF FF
        
Text value01_label
    Attributes
        ID                 : 3
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value05_label
    Attributes
        ID                 : 4
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value04_label
    Attributes
        ID                 : 5
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value02_label
    Attributes
        ID                 : 6
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value03_label
    Attributes
        ID                 : 7
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text page_label
    Attributes
        ID                 : 8
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 100
    
Text value06_label
    Attributes
        ID                 : 9
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value07_label
    Attributes
        ID                 : 10
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value08_label
    Attributes
        ID                 : 11
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 60
    
Text value01_icon
    Attributes
        ID                 : 12
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value02_icon
    Attributes
        ID                 : 13
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value03_icon
    Attributes
        ID                 : 14
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value04_icon
    Attributes
        ID                 : 15
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value05_icon
    Attributes
        ID                 : 16
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value06_icon
    Attributes
        ID                 : 17
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value07_icon
    Attributes
        ID                 : 18
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value08_icon
    Attributes
        ID                 : 19
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 5
    
Text value01
    Attributes
        ID                 : 20
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value02
    Attributes
        ID                 : 21
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value03
    Attributes
        ID                 : 22
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value04
    Attributes
        ID                 : 23
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value05
    Attributes
        ID                 : 24
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value06
    Attributes
        ID                 : 25
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value07
    Attributes
        ID                 : 26
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text value08
    Attributes
        ID                 : 27
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 30
    
Text page_index
    Attributes
        ID                 : 29
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 12
    
Text unavailable
    Attributes
        ID                 : 31
        Scope              : local
        Dragging           : 0
        Send Component ID  : disabled
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 1
    
Button button_back
    Attributes
        ID               : 28
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î…˜
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            page home
        
Timer swipestore
    Attributes
        ID         : 2
        Scope      : local
        Period (ms): 50
        Enabled    : no
    
    Events
        Timer Event
            swipex=tch0
            swipey=tch1
        
Timer wakeup_timer
    Attributes
        ID         : 30
        Scope      : local
        Period (ms): 100
        Enabled    : yes
    
    Events
        Timer Event
            if(dim<brightness)
            {
                dimdelta=brightness-dim
                dimdelta/=10
                if(dimdelta<1)
                {
                    dimdelta=1
                }
                dim+=dimdelta
            }else
            {
                wakeup_timer.en=0
            }
        
TouchCap swipe
    Attributes
        ID   : 1
        Scope: local
        Value: 0
    
    Events
        Touch Press Event
            swipestore.en=1 // Start swipestore timer
        
        Touch Release Event
            swipestore.en=0
            // Touch has ended, x
            if(tch0==0)
            {
                swipec=swipex-tch2
                // From Left to Right
                if(swipec>swipedx)
                {
                    if(is_entitypage01==1)
                    {
                        page entitypage01
                    }else
                    {
                        page home
                    }
                }
                // Right to Left
                swipec2=0-swipedx
                if(swipec<swipec2)
                {
                    if(is_entitypage03==1)
                    {
                        page entitypage03
                    }else if(is_entitypage04==1)
                    {
                        page entitypage04
                    }else
                    {
                        page home
                    }
                }
            }
            // Touch has ended, y
            if(tch1==0)
            {
                swipec=swipey-tch3
                // From Up to Down
                if(swipec>100)
                {
                    if(is_entitypage01==1)
                    {
                        page home
                    }else
                    {
                        if(is_entitypage04==1)
                        {
                            page entitypage04
                        }else if(is_entitypage03==1)
                        {
                            page entitypage03
                        }else
                        {
                            page home
                        }
                    }
                }
                // Down to Up
                swipec=0-swipedy
                if(swipec<-100)
                {
                    if(is_entitypage03==1&&is_entitypage04==1)
                    {
                        page entitypage04
                    }else if(is_entitypage03==1||is_entitypage04==1)
                    {
                        page home
                    }else
                    {
                        if(is_entitypage01==1)
                        {
                            page entitypage01
                        }else
                        {
                            page home
                        }
                    }
                }
            }
        
