Media player first buttons actions
This commit is contained in:
@@ -12,7 +12,6 @@ Page keyb_num
|
||||
|
||||
Events
|
||||
Preinitialize Event
|
||||
dim=brightness
|
||||
if(api==0)
|
||||
{
|
||||
page page_id.val
|
||||
@@ -375,3 +374,26 @@ Button bview
|
||||
pin.pw=1
|
||||
}
|
||||
|
||||
Timer wakeup_timer
|
||||
Attributes
|
||||
ID : 24
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user