Page cover
    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
            }else
            {
                sendme
            }
        
Variable (string) va1
    Attributes
        ID            : 7
        Scope         : local
        Text          : newtxt
        Max. Text Size: 10
    
Variable (string) coversetting
    Attributes
        ID            : 11
        Scope         : local
        Text          : 
        Max. Text Size: 255
    
Text battery_value
    Attributes
        ID                 : 1
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 10
    
Text cover_value
    Attributes
        ID                 : 2
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 10
    
Text page_label
    Attributes
        ID                 : 3
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 100
    
Text icon_state
    Attributes
        ID                 : 9
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 10
    
Text battery_icon
    Attributes
        ID                 : 10
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 10
    
Slider coverslider
    Attributes
        ID               : 6
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        Position         : 0
        Upper range limit: 100
        Lower range limit: 0
    
    Events
        Touch Release Event
            covx coverslider.val,va1.txt,0,0
            cover_value.txt=va1.txt+"%"
            coversetting.txt="{\"page\": \"cover\", \"key\": \"position\", \"value\": "+va1.txt+"}"
            printh 92
            prints "localevent",0
            printh 00
            prints coversetting.txt,0
            printh 00
            printh FF FF FF
        
Button cover_open
    Attributes
        ID               : 4
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : ï„
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            printh 92
            prints "localevent",0
            printh 00
            prints "{\"page\": \"cover\", \"key\": \"open_cover\", \"value\": \"press\"}",0
            printh 00
            printh FF FF FF
        
Button cover_close
    Attributes
        ID               : 5
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : ï„›
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            printh 92
            prints "localevent",0
            printh 00
            prints "{\"page\": \"cover\", \"key\": \"close_cover\", \"value\": \"press\"}",0
            printh 00
            printh FF FF FF
        
Button cover_stop
    Attributes
        ID               : 8
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î™¦
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            printh 92
            prints "localevent",0
            printh 00
            prints "{\"page\": \"cover\", \"key\": \"stop_cover\", \"value\": \"press\"}",0
            printh 00
            printh FF FF FF
        
Button button_back
    Attributes
        ID               : 12
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î…˜
        Max. Text Size   : 3
    
    Events
        Touch Press Event
            page back_page_id
        
Timer wakeup_timer
    Attributes
        ID         : 13
        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
            }
        
