Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

LCD backlight based on time

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
thor2002ro
Posts: 13
Joined: August 7th, 2009, 3:43 pm

LCD backlight based on time

Post by thor2002ro »

Hi all :smt006
i have a usb lcd 4x20
i have been wandering can i control the lcd backlight based on time ? like say at day , dim or turn off the backlight?

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Re: LCD backlight based on time

Post by caesar »

Try some actions based on time as parameters.

mattcro
Forum Supporter
Posts: 590
Joined: March 8th, 2006, 1:58 pm
Location: Scotland

Re: LCD backlight based on time

Post by mattcro »

Try something like:

IF $Time(hh) >= 8 then Backlight(0)
IF $Time(hh) >= 20 then Backlight(1)

The actions must be in this order (they get executed in sequence), otherwise the backlight will stay off, and this assumes you are using 24-hour clock format.

Unfortunately there doesn't seen to be an action output command that lets you set backlight brightness. You can only turn it on (at the preset brightness) or off.

thor2002ro
Posts: 13
Joined: August 7th, 2009, 3:43 pm

Re: LCD backlight based on time

Post by thor2002ro »

dam :( i just wanted to reduce the brightneess to 50% at night...
oh whell thanks for the help

caesar
Forum Supporter
Posts: 734
Joined: October 15th, 2005, 10:39 am
Location: Romania
Contact:

Re: LCD backlight based on time

Post by caesar »

You can put a resistor that keeps the light when off to your desired brightness ;)

usling
Posts: 38
Joined: September 5th, 2008, 1:55 pm

Re: LCD backlight based on time

Post by usling »

$dll(if,1,$dll(sandr,1,$Time(hh),C:\lcd_smartie_v5.4\plugins\omit.ini)#22,notext#some text#)

I use that line on my screensaver screen. In the omit.ini i've specified 23 to 06 = 22, so every hour between 22 and 06 shows an empty screen if the screensaver is running (notext in this case). I use a VFD, so i don't know how to set backlight, but maybe this is useful anyway.

Post Reply