Go Down

Topic: LCD background color options? (solved) (Read 1 time) previous topic - next topic

Neight

Jan 17, 2013, 06:23 pm Last Edit: Jan 18, 2013, 01:16 am by Neight Reason: 1
Hello everyone :)

I have this LCD - lmb162abc

here is the data sheet

http://www.topwaydisplay.com/Pub/Manual/LMB162ABC-Manual-Rev0.2.pdf

on page three of the data sheet it seems to indicate there are two options for the background color, green and deep blue.
I have been searching the internet for a while now to try and find out how this works, and how to write the code to make it happen, but everything I can find is for RGB LCD's mostly from adafruit.
Am I reading the datasheet wrong, or are there actually two colors available.  It is very possible I have misunderstood what I read and there is only one color available, and it would be model dependent on which color you have.

I am using the LiquidCrystal library to control the LCD, and if it actually does change color, I would very much enjoy being able to do so.  If anyone could show me how to do this, or let me know if I am wrong on my understanding, that would be great!

Thanks in advance for any help provided
N8

edit to correct myself, wrote my post as backlight color, but it's actually the background color

absence of proof is not proof of absence

robtillaart


Think the colour changes if you switch Back light on or off. (thats how I interpret it)

According to the PDF you posted there are LEDS for backlight. You could connect this to a PWM pin of the Arduino and adjust the back light...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Neight

going to play with some code for this to try it, but at the moment I have the LED back light wired through a toggle switch, to be able to manually turn it on and off, and when the switch is off, all it does is turn the LED off, it doesn't change colors when the back light is off.
The way I read it, there should be some line of code I could write to change the "Display Data" to either 1 or 0 and thus change the color.

it also says that yellow-green is the inactive background color, which would also indicate you have to do something to change the active background color.  though looking at the background on this display, it really doesn't look like it would change color.

The whole wording of it is a bit confusing if you ask me.

I will try and write some code to turn on and off the LED back light and see if that makes a difference over a physical switch, but I don't understand why that would matter.  maybe using PWM to fade it down to off might make a difference?

eh, I honestly have no idea, but thank you for your input, I greatly appreciate it!
absence of proof is not proof of absence

Neight

Ok, I have played with this a bit, and gotten nothing new to work from.
tried using some code to turn on and off the LED back light, and also used a PWM pin to fade it on and off, and no color change.  all that happens is the LED turns on and off, or fades on and off, which is what I expected, but what the hell, worth a shot, right?

not sure what to make of it, and I don't have enough experience with LCD displays or Arduino in general to know where else to begin trying.

one good thing I got out of this process so far, I am going to use a timer to turn the back light off after some period of inactivity.  save me some battery power.  This is a digital dice project for gaming, and this thing could be sitting on a table left on for quite some time, but only used intermittently, so this makes a nice addition to my code to save the battery and not have to turn the unit on and off for each use :)
absence of proof is not proof of absence

robtillaart

Saw no mention of the display data command in the documentation.
Maybe the same lcd is available elsewhere with another datasheet?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up