CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

how to print '' char to LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rret
Guest







how to print '' char to LCD
PostPosted: Tue Mar 04, 2003 12:27 pm     Reply with quote

with a HD44780-based LCD, how does one print the \ char?
i tried "\\" but a weird different char printed out instead.
any ideas?
___________________________
This message was ported from CCS's old forum
Original Post ID: 12339
Shane Rowell
Guest







Re: how to print '' char to LCD
PostPosted: Tue Mar 04, 2003 12:44 pm     Reply with quote

:=with a HD44780-based LCD, how does one print the \ char?
:=i tried "\\" but a weird different char printed out instead.
:=any ideas?

I think that you need to look at the character table. I believe that it is slightly diferent than the standard ascii table.

Shane
___________________________
This message was ported from CCS's old forum
Original Post ID: 12341
Robert Holmer
Guest







Re: how to print '' char to LCD
PostPosted: Wed Mar 05, 2003 1:24 am     Reply with quote

:=with a HD44780-based LCD, how does one print the \ char?
:=i tried "\\" but a weird different char printed out instead.
:=any ideas?

If the "\" is not implemented in the standard character ROM it is possible to design your own character and put it into the CGRAM. To print it out one has to write another character which corresponds to the address in CGRAM or write a function which translates ASCII (or whatever) code to the code for your display.

Best wishes,
Rob
___________________________
This message was ported from CCS's old forum
Original Post ID: 12358
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: how to print '' char to LCD
PostPosted: Wed Mar 05, 2003 1:53 pm     Reply with quote

:=with a HD44780-based LCD, how does one print the \ char?
:=i tried "\\" but a weird different char printed out instead.
:=any ideas?

I use this for a character resource

/*-------------------------------------------------------------------
Character resource

!"#$\%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]
^_`abcdefghijklmnopqrstuvwxyz{|}~


-------------------------------------------------------------------*
___________________________
This message was ported from CCS's old forum
Original Post ID: 12387
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group