Page confirm
    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
            printh 92
            prints "current_page",0
            printh 00
            prints "confirm",0
            printh 00
            printh FF FF FF
        
Variable (int32) page_id
    Attributes
        ID   : 3
        Scope: global
        Value: 0
    
Variable (string) aux
    Attributes
        ID            : 5
        Scope         : local
        Text          : 
        Max. Text Size: 255
    
Variable (string) page_name
    Attributes
        ID            : 9
        Scope         : global
        Text          : 
        Max. Text Size: 12
    
Variable (string) component
    Attributes
        ID            : 10
        Scope         : global
        Text          : 
        Max. Text Size: 10
    
Text t0
    Attributes
        ID                 : 1
        Scope              : local
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 10
    
Text title
    Attributes
        ID                 : 4
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : Please confirm
        Max. Text Size     : 100
    
Text body
    Attributes
        ID                 : 8
        Scope              : global
        Dragging           : 0
        Send Component ID  : on press and release
        Associated Keyboard: none
        Text               : Please confirm
        Max. Text Size     : 255
    
Text unavailable
    Attributes
        ID                 : 12
        Scope              : local
        Dragging           : 0
        Send Component ID  : disabled
        Associated Keyboard: none
        Text               : 
        Max. Text Size     : 1
    
Button bclose
    Attributes
        ID               : 2
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î…˜
        Max. Text Size   : 10
    
    Events
        Touch Release Event
            page page_id.val
        
Button bt_accept
    Attributes
        ID               : 6
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î— 
        Max. Text Size   : 3
    
    Events
        Touch Release Event
            aux.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+component.txt+"\"}"
            printh 92
            prints "localevent",0
            printh 00
            prints aux.txt,0
            printh 00
            printh FF FF FF
            page page_id.val
        
Button bt_clear
    Attributes
        ID               : 7
        Scope            : local
        Dragging         : 0
        Send Component ID: on press and release
        State            : unpressed
        Text             : î…™
        Max. Text Size   : 10
    
    Events
        Touch Release Event
            page page_id.val
        
Timer wakeup_timer
    Attributes
        ID         : 11
        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
            }
        
