Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Backlight control in OPL

2 replies · 2,175 views · Started 18 May 2003

I want to keep the backlight on in OPL. This is an example of how I do it at the moment. Is this the best way to do it or will it mess up other programs?
If it is ok then Im sure someone will find it handy

INCLUDE "system.oxh"
PROC Backlight:
LOCAL k%,sit%
DO
sit%=SyInactivityTime&:
IF sit%>59
SyResetInactivityTime:
ENDIF
PRINT sit%
k%=KEY
UNTIL k%=5
ENDP

I know it chows the battery but when you are writing GPS software, its useful 😉

The robelm is of course the battery usage - it's criminal. But I can't off hand think of a solution, otherwise I would have used it in Clock6!

I actualy can't stand it when my 9210 isn't at brightest.
Doesn't do much on my battery life still good for 5 days of normal use.