Main > Main Forum

My serial LCD for displaying directions

<< < (19/39) > >>

maraxle:
\@ 0 clears the screen
\C! is bold
\C# is regular text

Neither is required to output to the LCD.  It's only for formating purposes.

If you're getting the blocks/boxes on the screen no matter what contrast level you're using then something is wrong.  Make sure you're not supplying too much voltage or have the ground and power reversed.

Also, try taking out the "> lcd.tmp" so that you can see what your error messages are.

Froggerman - If it seems like you need to run Hyperterminal to get the com port open, try using the mode command instead.  I just have my machine run a mode command on startup.  Drop to a command line and type:

mode com1: baud=19200 parity=n data=8 stop=1

BobBorakovitz:
no, the boxes go away, when i turn the contrast down halfway, i checked the voltage and I'm getting exactly 5VDC, I think it's a problem with my computer though.  Thanx for the explination on the formatting.
Is there a forum or something that you know of that has some good info on this?  thank you again.

When i try running it in the command prompt it says handle invalid.

My new test.bat:
copy test.lcd com1
My new test.lcd:
\C 0\C!HERE YOU GO - A SAMPLE!!
\C#Button 1: Fire
\C#Button 2: Loop

froggerman:

--- Quote from: maraxle on April 27, 2004, 11:12:16 pm ---
mode com1: baud=19200 parity=n data=8 stop=1


--- End quote ---
Thanks for the tip! I knew that there was a 'correct' way to open the com port but I could not remember it for the life of me.

BobBorakovitz:
ok, a couple of quick questions, if you turn the contrast level all the way up, you see the black boxes, too?  I just want to make sure that i didn't do anything wrong, i'm going to go try it on another computer in a couple of hours, i hope it works, i've been messing with this screen all day long... :P  oh, well...

thanx for the help

froggerman:
I tested the Mode command in a little batch file and it works great - first time every time. Thanks again.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version