Page settings
    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
            sendme
            covx brightslider.val,bright_text.txt,0,0
            bright_text.txt+="%"
            covx dimslider.val,dim_text.txt,0,0
            dim_text.txt+="%"
            vis lbl_sleep,0
            vis bt_sleep,0
        
Text bright_text
    Attributes
        ID                 : 3
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 80%
        Max. Text Size     : 4
    
Text dim_text
    Attributes
        ID                 : 4
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 20%
        Max. Text Size     : 4
    
Text lbl_reboot
    Attributes
        ID                 : 5
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               :  Reboot
        Max. Text Size     : 25
    
    Events
        Touch Press Event
            tm_boot_page.en=1
        
        Touch Release Event
            tm_boot_page.en=0
        
Text lbl_sleep
    Attributes
        ID                 : 6
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               :  Sleep mode
        Max. Text Size     : 25
    
Text lbl_bright
    Attributes
        ID                 : 7
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : Bright
        Max. Text Size     : 25
    
Text lbl_dim
    Attributes
        ID                 : 8
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : Dim
        Max. Text Size     : 25
    
Text lbl_brightness
    Attributes
        ID                 : 16
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : Brightness
        Max. Text Size     : 25
    
Slider brightslider
    Attributes
        ID               : 1
        Scope            : global
        Dragging         : 0
        Send Component ID: on press and release
        Position         : 80
        Upper range limit: 100
        Lower range limit: 0
    
    Events
        Touch Release Event
            if(tm_bright.en==0)
            {
                tm_bright.en=1
            }
        
Slider dimslider
    Attributes
        ID               : 2
        Scope            : global
        Dragging         : 0
        Send Component ID: on press and release
        Position         : 20
        Upper range limit: 100
        Lower range limit: 0
    
    Events
        Touch Release Event
            if(tm_dim.en==0)
            {
                tm_dim.en=1
            }
        
Button button_back
    Attributes
        ID               : 11
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î…˜
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            page home
        
Dual-state Button bt_reboot
    Attributes
        ID               : 9
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : îœˆ
        Max. Text Size   : 3
    
Dual-state Button bt_sleep
    Attributes
        ID               : 10
        Scope            : global
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î¨˜
        Max. Text Size   : 3
    
Hotspot bt_bright_down
    Attributes
        ID               : 12
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
    
    Events
        Touch Release Event
            if(brightslider.val>0)
            {
                brightslider.val--
                covx brightslider.val,bright_text.txt,0,0
                bright_text.txt+="%"
                printh 91
                prints "brightslider",0
                printh 00
                prints brightslider.val,0
                printh FF FF FF
            }
        
Hotspot bt_bright_up
    Attributes
        ID               : 13
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
    
    Events
        Touch Release Event
            if(brightslider.val<100)
            {
                brightslider.val++
                covx brightslider.val,bright_text.txt,0,0
                bright_text.txt+="%"
                printh 91
                prints "brightslider",0
                printh 00
                prints brightslider.val,0
                printh FF FF FF
            }
        
Hotspot bt_dim_down
    Attributes
        ID               : 14
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
    
    Events
        Touch Release Event
            if(dimslider.val>0)
            {
                dimslider.val--
                covx dimslider.val,dim_text.txt,0,0
                dim_text.txt+="%"
                printh 91
                prints "dimslider",0
                printh 00
                prints dimslider.val,0
                printh FF FF FF
            }
        
Hotspot bt_dim_up
    Attributes
        ID               : 15
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
    
    Events
        Touch Release Event
            if(dimslider.val<100)
            {
                dimslider.val++
                covx dimslider.val,dim_text.txt,0,0
                dim_text.txt+="%"
                printh 91
                prints "dimslider",0
                printh 00
                prints dimslider.val,0
                printh FF FF FF
            }
        
Timer wakeup_timer
    Attributes
        ID         : 17
        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
            }
        
Timer tm_bright
    Attributes
        ID         : 18
        Scope      : local
        Period (ms): 100
        Enabled    : no
    
    Events
        Timer Event
            covx brightslider.val,bright_text.txt,0,0
            bright_text.txt+="%"
            printh 91
            prints "brightslider",0
            printh 00
            prints brightslider.val,0
            printh FF FF FF
            tm_bright.en=0
        
Timer tm_dim
    Attributes
        ID         : 19
        Scope      : local
        Period (ms): 100
        Enabled    : no
    
    Events
        Timer Event
            covx dimslider.val,dim_text.txt,0,0
            dim_text.txt+="%"
            printh 91
            prints "dimslider",0
            printh 00
            prints dimslider.val,0
            printh FF FF FF
            tm_dim.en=0
        
Timer tm_boot_page
    Attributes
        ID         : 20
        Scope      : local
        Period (ms): 1000
        Enabled    : no
    
    Events
        Timer Event
            page boot
        
