Author Topic: can I turn LCD backlight off?  (Read 3580 times)

barnacleBudd

  • Newbie
  • *
  • Posts: 21
can I turn LCD backlight off?
« on: February 13, 2013, 10:40:03 pm »
My LCD is working great. I see that the backlight goes off when the sketch begins and we use the line lcd.backlight(); to turn it on.  I have written a game and would like to turn it off for a second between rounds. Is there a way to do that?

bjh

  • Newbie
  • *
  • Posts: 31
Re: can I turn LCD backlight off?
« Reply #1 on: February 13, 2013, 11:05:13 pm »
Calling lcd.backlight() toggles it (been doing my own bit of LCD troubleshooting)
--bjh


Mark

  • Full Member
  • ***
  • Posts: 196
Re: can I turn LCD backlight off?
« Reply #2 on: February 14, 2013, 12:29:29 am »
Try lcd.noBacklight()
I also send lcd.NoCursor() to get rid of the blinking marker.

If you open the keywords.txt file (usually in the library with the .cpp and .h), you should see a whole bunch it will recognise.
Prefix with lcd. and you should be set.


Mark

I also have a sketch that shows how to scroll chars within a xx char area if you want.
Handy for error messages that might have 1, 2 or 3 parts and are much larger than 16/20 characters long.
Download from http://www.theshedmag.co.nz/online/arduino ( Relay with I2C LCD )
« Last Edit: February 14, 2013, 12:37:36 am by mcb1 »

barnacleBudd

  • Newbie
  • *
  • Posts: 21
Re: can I turn LCD backlight off?
« Reply #3 on: February 14, 2013, 06:15:03 pm »
mcb1 ... thank you thank you ... lcd.noBacklight() works just great.

I thought maybe lcd.backlight() might toggle the light, but it doesn't do it here.

I will look forward to checking out the key words file. Who knows what treats I might find there.