BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 12:18 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: LCD syntax and backlight
PostPosted: Tue Jan 24, 2012 9:11 am 
Offline
Guru

Joined: Wed Nov 30, 2011 7:56 pm
Posts: 52
Location: Ontario Canada
I would like to blank a 2x16 LCD display. In the manual, it looks like "Off" will do this but when I try to use it, I get "unexpected token..."

Code:
lcdwrite p10\p9\p4\p5\p6\p7,p11, [CLEARLCD,HOMELCD,SCR,TWOLINE,"Good Bye"]   ;Exit screen
   pause 5000
   lcdwrite p10\p9\p4\p5\p6\p7,p11, [Off]   ;Shuts display off till Start is pushed
   goto Main


First line works fine but 3rd line gives error.

I also tried this variation
Code:
lcdwrite p10\p9\p4\p5\p6\p7,p11, [CLEARLCD,HOMELCD,Off]


But it did not work either, same error.

So, how do we use these extra codes?

Question re backlight...do you need a resistor for the backlight or is it built in? I am not sure if I popped it or my display does not have one.


Top
 Profile  
 
 Post subject: Re: LCD syntax and backlight
PostPosted: Wed Jan 25, 2012 10:54 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
Use the actual command value instead of "OFF" until I can look at it. I'm out of the office today and can't look at the code to see if the OFF constant was renamed. I expect it was renamed to LCDOFF though.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
 Post subject: Re: LCD syntax and backlight
PostPosted: Wed Jan 25, 2012 11:48 am 
Offline
Guru

Joined: Wed Nov 30, 2011 7:56 pm
Posts: 52
Location: Ontario Canada
OK, I can try a variation of that. I achieved the same effect (affect?) by simply Clearing it but not sure if the "Off" does anything differently?

I ams still curious about the backlight issue though as one of my displays (one from you) did have a backlight but now I have no continuity between those two pins so I must have popped it. I cannot find any reference to an external resistor but it is called an LED backlight so.....?


Top
 Profile  
 
 Post subject: Re: LCD syntax and backlight
PostPosted: Wed Jan 25, 2012 12:27 pm 
Offline
Guru

Joined: Wed Nov 30, 2011 7:56 pm
Posts: 52
Location: Ontario Canada
Yep, that is it Nathan

[LCDOFF] worked fine to turn the display off.

Thanks!

Shawn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO