Re: Degree symbol in bash script
"Markus Dolze" <[email protected]>
| Newsgroups | gmane.comp.sysutils.lcdproc |
|---|---|
| Message-ID | <[email protected]> |
-------- Original-Nachricht -------- > Datum: Sun, 27 Feb 2011 14:21:39 +0000 (GMT) > Von: "Dave Liquorice" <[email protected]> > An: "[email protected]" <[email protected]> > Betreff: Re: [Lcdproc] Degree symbol in bash script > On Sun, 27 Feb 2011 13:37:04 +0000, Brian Platt wrote: > > > Does anyone know how to print a 'DEGREES' symbol to a HD44780 display > via > > a bash script? > > A quick google shows that the "degree" symbol is in the characters set at > 0xDF, send that hex code from you bash script and it should display the > sysmbol. > > http://symlink.dk/electro/hd44780/ > > -- > Cheers > Dave. > > Hi, I assume that you want to use LCDproc for writing to the display? Then the above will most likely not work as the hd44780 driver maps characters according to its configured charmap. Writing 0xDF to LCDd will only work if you have a display with japanese character set and the charmap is set to 'none' in the config. Better is to write 0xB0 which is the degree character in ISO8859-1. It will be mapped to the degree character on displays with the default and euro char set. Regards, Markus