Using Parallax LCD
Kivisto
Posts: 17
Hey guys,
I just ordered a Parallax Serial LCD to interface with my BS2. I'll be using the same code many of you guys have been helping me with.
The reason I went with the Parallax LCD is because it seems pretty simple to interface. I have no experience interfacing or working with LCDs, so I was hoping I could get some guidance in working with the following code excerpt.
Basically, I want to take what I have going to the debugger and output that to the Parallax serial LCD. Can someone make some suggestions as to the simplest way to adapt this or write this in? I'd greatly appreciate the help. Thanks
-Kivisto
I just ordered a Parallax Serial LCD to interface with my BS2. I'll be using the same code many of you guys have been helping me with.
The reason I went with the Parallax LCD is because it seems pretty simple to interface. I have no experience interfacing or working with LCDs, so I was hoping I could get some guidance in working with the following code excerpt.
X VAR Word X = 500 Main: IF (IN0=1) THEN START GOTO MAIN Start: X = X - 1 DEBUG ? X, CR IF (X=0) THEN COMPLETE DO UNTIL: IN0=0 LOOP GOTO MAIN Complete: OUT1 =1 DEBUG "COMPLETE", CR
Basically, I want to take what I have going to the debugger and output that to the Parallax serial LCD. Can someone make some suggestions as to the simplest way to adapt this or write this in? I'd greatly appreciate the help. Thanks
-Kivisto
Comments
I learned this from reading the documentation from the webpage for the LCDs:
[noparse][[/noparse]url]http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/SerialLCD-v2.0.pdf[noparse][[/noparse]/url]
You should make it a habit to carefully read the documentation for everything you buy from Parallax. It's almost always enough to get you up and running. In fact it's one of the main reasons to buy these things from Parallax - there's no way in the world I'd have figured any of this out myself, at least in any reasonable amount of time.
I assume this line outputs a temperature in "XX.X F" format? Another question is does this work well for a constantly changing value? Say
your temperature is constantly changing on the fly, does this one line of code constantly keep the current temperature on the LCD, or is some kind of
refresh required? Thanks for your help.