Help with Picaxe and serial LCD
December 27, 2008
Ok Picaxe Basic Gurus... I think I need some code snippits...
My new serial enabled LCD just arrived and I can't seem to get it up and running. I am using what I think is the standard picaxe basic commands but I am only getting white blocks, x's and some other random symbols. To be honest, I am confused with a lot of the serial commands in general, the whole ASCII thing and anything written as 0x7C or 0x14 or whatever.
For instance, I first need to change the baud rate. The instructions tell me to send 124 followed by "<control>k" . Now it seems the picaxe standard is 2400 baud. What is the actual command? Do I send the "change baud" command at 2400 baud when the display is at a default of 9600? and then the command number is 124 and also 0x7C so what do I do?
In my mind (and to show I have no idea what I am doing) here are all the options I can see:
serout 7,N2400, (124, "<control>K")
serout 7,N2400,($7c, "<control>k")
I could go on and on with my guessing but nothing is working.
In general, I assume my major problem is with the baud rate, I hope and assume that after I get that fixed I should be able to return to the standard serout 7,N2400,("Hello") sorta commands.
Would anyone be so kind as to give me a crash course on what you think I should know?