Daniel Fowler
unread,Jun 10, 2010, 10:56:40 AM6/10/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ezLCD+ Support Group
I recently switched from using the 102 to the 105 and my code still
seams to work with the exception of the backlight functions. I
believe the backlight is always on and at full power. ez.LightOff()
and ez.LightBright(#) no longer seem to change anything. I can't
really test ez.LightOn() without being able to turn it off first. I
did test ezLightOn() anyway to verify that the backlight wasn’t
actually off and that is why it was not changing or turning off, on
the chance that the screen was just really bright without it, and it
didn't seem to have any affect.
the boards are the same so I'm guessing the 105's screen does not
support this sort of function, but that also seems unusual. Can some
one verify whether or not I can adjust the screen brightness of an
ezLCD+105 using lua script.
my code:
CurrentScreenBrightness = 200
...
...
function MacroTurnUpScreenBrightness()
if CurrentScreenBrightness <= 230 then
CurrentScreenBrightness = CurrentScreenBrightness + 25
ez.LightBright(CurrentScreenBrightness)
end
--ez.Cls(ez.RGB(255, 255, 255))
--ez.SetXY(0, 100)
--print("Brightness" .. CurrentScreenBrightness)
end
function MacroTurnDownScreenBrightness()
if CurrentScreenBrightness > 55 then
CurrentScreenBrightness = CurrentScreenBrightness - 25
ez.LightBright(CurrentScreenBrightness)
end
--ez.Cls(ez.RGB(255, 255, 255))
--ez.SetXY(0, 100)
--print("Brightness" .. CurrentScreenBrightness)
end
Thanks for any help
Daniel