@FrostedKiwi said in Special characters with pimatic-lcd:
Is there a way to do this?
@ruudvddries said in Special characters with pimatic-lcd:
Does someone know how to do is? I would like to print ° (ASCII 248) on an HD44780 2004 LCD. But I still get a ‘-’ .
I may be wrong but I think the char code for
° is 176 (10110000). That’s at least the case for ISO/IEC 8859-1. It might be language dependent (dependent on the locale settings of your pimatic system). HD44780 has a built-in 208 character table (which is less than 8-bits). Apparently the character table varies from the normal ISO character set and as you can see (see link below) the character 10110000 is the ‘-’ sign. However, there is a degree sign at code 239 (11101111).To find the appropriate character input you can use
console.log(String.fromCharCode(239)); (to be execute on your pimatic system - use node for that).
See also (referencing the German Wiki pages here, as the English version does not contain the character tables):
Note beyond, HD44780 can load up to 8 special characters from a bitmap (5x8). The base library for pimatic-lcd supports this and therefore, it would be possible to add support for additional characters.
Edit: With ISO/IEC 8859-1 (and UTF-8) character code 239 is ï (LATIN SMALL LETTER I WITH DIAERESIS)
"Action expands to fill the void created by human failure", Parkinson's generalized law of the vacuum