Shop OBEX P1 Docs P2 Docs Learn Events
4X20 backlit LCD upgrade help — Parallax Forums

4X20 backlit LCD upgrade help

djgilmo32djgilmo32 Posts: 10
edited 2006-04-18 18:36 in BASIC Stamp
I have upgraded from a 2X16 nonbacklit LCD to the 4X20 LCD and I was wondering if the following code must be used in order to display text EVERY TIME....

SEROUT TX, LcdBaud, [noparse][[/noparse]LcdBLoff, LcdOn1, LcdCls, LcdBLon]
· PAUSE 250
· SEROUT TX, LcdBaud, [noparse][[/noparse]"Enter Selection"]

...or can I just write...

SEROUT TX, LcdBaud, [noparse][[/noparse]LdcBLon, LcdOn1,·LcdCls, "Enter Selection"]
PAUSE 250

Also, if i write [noparse][[/noparse]LcdBLon] once, will it leave the backlight on until I write [noparse][[/noparse]LcdBLoff]?

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-04-18 18:36
    Remember that you need to insert a 5 ms PAUSE after the LcdCls byte -- this is in the documentation.· And yes, once you turn the backlight on it will stay on until you turn it off or power is cycled.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.