Ascii characters

Hai,

Do anyone know how you can place the characters \ and " on a 4x20 LCD
I want all the characters which you should normally use alt gr
All the ascii characters

Apparently he does not do this ,is there a trick to be able to put this all on the LCD

(_/)
(o-o)
(")(") This is what I want to get on the LCD

mvg

In C, the backslash character is an "escape" character used to introduce special characters into a string.
For example, you would commonly see "\n" to represent a line-feed.

To send a backslash use "\" and to send a double-quote use """

Pete

Hai,

If I lcd.print"""; do ,i get " disin place ( oke)
If I lcd.print"\"; do ,i get a chinese character , a Y with a = in it

If I lcd.print((Char)92) do , i get a chinese character ( 92 = \ )

I work with Arduino uno or Mega 2560, a HD44780 lcd 4x20 lines

Kind Regards

Aha, you are right. I tried it on my LCD (16x2). I do get the double-quote but the backslash prints a different character. You will have to check the datasheet for your LCD and check its character map to see if it even has backslash and double-quote.
If it doesn't, most LCDs allow you to make your own special characters (usually 8 of them). You could make up your own backslash and double-quote and use those.

Pete

There is also 8 user defined chars available

lcd-font.png