Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:22 23 Nov 2024 Privacy Policy
Jump to

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: Australia
Posts: 26
Posted: 09:05am 06 Sep 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 819
Posted: 09:10am 06 Sep 2011
Copy link to clipboard 
Print this post

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 sparkeyEdited by sparkey 2011-09-07
technicians do it with least resistance
 
jebz

Regular Member

Joined: 13/06/2011
Location: Australia
Posts: 79
Posted: 09:35am 06 Sep 2011
Copy link to clipboard 
Print this post

  devigan said   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


0xFE is being interpreted as text. Try substituting 254, 82 for your parameters.
 
BobDevries

Senior Member

Joined: 08/06/2011
Location: Australia
Posts: 266
Posted: 09:45am 06 Sep 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 266
Posted: 09:56am 06 Sep 2011
Copy link to clipboard 
Print this post

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: Australia
Posts: 26
Posted: 10:55am 06 Sep 2011
Copy link to clipboard 
Print this post

Bob thanks it works
 
devigan
Newbie

Joined: 11/08/2011
Location: Australia
Posts: 26
Posted: 10:57am 06 Sep 2011
Copy link to clipboard 
Print this post

and you right I did get 0000
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024