cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

ToVa_285016
Contributor

Hi,

   

I am trying to print the degree symbol (ascii 248) to the Char LCD.  I am trying to use LCD_Char_PutChar or PrintString, but neither give me the right output.  For example, for char 126, which should be a tilde, I get an arrow ➔, which is not in the ascii table at all.  Any ideas where I can get the character map for these?

   

Thank you,
Tom

0 Likes
2 Replies
JoMe_264151
Expert II

This is not a matter of PrintString(), but concerned with your LCD's coding of special characters. The interface to LCD does not specify which pattern is printed for a character value (think of foreign language chars as Japanese). Try to get hands on the LCD's datasheet or, if all fails, define your own character using the CharLCD component.

   

 

   

Bob

0 Likes
ToVa_285016
Contributor

Perfect, the LCD uses the standard HD44780 character set.  I thought it was just expecting ASCII code.

   

Thank you,
Tom

0 Likes