Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Serial LCD
Author | Message | ||||
devigan Newbie Joined: 11/08/2011 Location: AustraliaPosts: 26 |
Hi guys, anyone with Serial LCD code. I am trying with 2.5F. 100 OPEN "COM1:9600" AS #5 200 PRINT #5, 0xFE, 0X52 ' backlite On but it write 0xFE, 0X52 on the LCD does not carry out any command Help please Dave |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
2011-09-06_192118_2011-07-09-James-Deakins-LCD-4x20-V2-0.zip 2011-09-06_192228_2011-08-12-Mick-Gulovsen-Arduino-LCD-V1-0_ ALL_FILES_.zip go to the post by gizzmo "tacho with lcd there will be some code in there this may help ...just an idea ...regards sparkey ::: also go to dontronics web page and get on the downloades there is some code there as well follow your nose um i dont have the url for this but if you look through the post "whish list" there you should find a link to dons web page "maximite downloads "...regards sparkey technicians do it with least resistance |
||||
jebz Regular Member Joined: 13/06/2011 Location: AustraliaPosts: 79 |
0xFE is being interpreted as text. Try substituting 254, 82 for your parameters. |
||||
BobDevries Senior Member Joined: 08/06/2011 Location: AustraliaPosts: 266 |
Hi all, my suggestion would be to use this: 100 OPEN "COM1:9600" AS #5 200 PRINT #5, CHR$(&HFE);CHR$(&H52); The semicolon is necessary at the end of line 200, else a CR/LF will be appended and sent. Note also that the correct syntax for hexadecimal conversion is "&H"; see manual page 6. Regards, Bob Devries Dalby, QLD, Australia |
||||
BobDevries Senior Member Joined: 08/06/2011 Location: AustraliaPosts: 266 |
A suggestion.... when you're working with I/O streams other than the screen, it's good to send the output to the screen first to see what results. In the above case, the statement: 200 PRINT 0xFE, 0x52: REM truncated somewhat from above" would produce: 0 0 0 0 hope that helps. Regards, Bob Devries Dalby, QLD, Australia |
||||
devigan Newbie Joined: 11/08/2011 Location: AustraliaPosts: 26 |
Bob thanks it works |
||||
devigan Newbie Joined: 11/08/2011 Location: AustraliaPosts: 26 |
and you right I did get 0000 |
||||
Print this page |