Expand list of custom characters

This commit is contained in:
Alex Voinea 2023-09-22 10:51:40 +02:00
parent 6d5e645c1f
commit 1c260f94a0
2 changed files with 17 additions and 3 deletions

View File

@ -172,6 +172,7 @@ private:
//Custom characters defined in the first 8 characters of the LCD
#define LCD_STR_ARROW_RIGHT "\x7E" //from the default character set
#define LCD_STR_ARROW_LEFT "\x7F" //from the default character set
#define LCD_STR_BEDTEMP "\x80"
#define LCD_STR_DEGREE "\x81"
#define LCD_STR_THERMOMETER "\x82"

View File

@ -1,12 +1,25 @@
# Mapping from LCD source encoding to unicode characters
CUSTOM_CHARS = {
'\x06': '',
'\x04': '🔃',
'\xdf': '°',
# Dynamic characters
'\x80': '🄷',
'\x81': '°',
'\x82': '🌡',
'\x83': '',
'\x84': '🔃',
'\x85': '🗀',
'\x86': '»',
'\x87': '🕑',
'\x88': '',
'\x89': '',
# HD44780 A00 font:
'\x7e': '',
'\x7f': '',
'\xe1': 'ä',
'\xe4': 'µ', #on keyboard AltGr+m it is \xC2\xB5
'\xef': 'ö',
'\xf5': 'ü',
'\xff': '',
}
# Charaters to be remapped prior to source-encoding transformation