Skip to content
Snippets Groups Projects
Commit 9861425d authored by Emantor's avatar Emantor
Browse files

Merge pull request #1 from schlafloswille/master

enhanced bitmapfont (uses unicode)
parents c3c784ea 549d94e2
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 5x7 font from http://www.hwsw.no/snippets/5x7_LCD_font.php
# every byte contains pixel data for one column, LSB is on top, MSB is ignored.
FONT = {
" ": [0x00,0x00,0x00,0x00,0x00],
"!": [0x00,0x00,0x4F,0x00,0x00],
"\"": [0x00,0x07,0x00,0x07,0x00],
"\"": [0x00,0x03,0x00,0x03,0x00],
"#": [0x14,0x7F,0x14,0x7F,0x14],
"$": [0x24,0x2A,0x7F,0x2A,0x12],
"%": [0x23,0x13,0x08,0x64,0x62],
"&": [0x36,0x49,0x55,0x22,0x50],
"'": [0x00,0x05,0x03,0x00,0x00],
"'": [0x00,0x00,0x03,0x00,0x00],
"(": [0x00,0x1C,0x22,0x41,0x00],
")": [0x00,0x41,0x22,0x1C,0x00],
"*": [0x14,0x08,0x3E,0x08,0x14],
"+": [0x08,0x08,0x3E,0x08,0x08],
",": [0x00,0x50,0x30,0x00,0x00],
"-": [0x08,0x08,0x08,0x08,0x08],
".": [0x00,0x60,0x60,0x00,0x00],
",": [0x00,0x00,0x60,0x00,0x00],
"-": [0x00,0x08,0x08,0x08,0x08],
".": [0x00,0x00,0x40,0x00,0x00],
"/": [0x20,0x10,0x08,0x04,0x02],
"0": [0x3E,0x51,0x49,0x45,0x3E],
......@@ -30,8 +31,8 @@ FONT = {
"7": [0x01,0x71,0x09,0x05,0x03],
"8": [0x36,0x49,0x49,0x49,0x36],
"9": [0x06,0x49,0x49,0x29,0x1E],
":": [0x36,0x36,0x00,0x00,0x00],
";": [0x56,0x36,0x00,0x00,0x00],
":": [0x00,0x00,0x24,0x00,0x00],
";": [0x00,0x00,0x64,0x00,0x00],
"<": [0x08,0x14,0x22,0x41,0x00],
"=": [0x14,0x14,0x14,0x14,0x14],
">": [0x00,0x41,0x22,0x14,0x08],
......@@ -69,7 +70,7 @@ FONT = {
"\\": [0x02,0x04,0x08,0x10,0x20],
"]": [0x00,0x41,0x41,0x7F,0x00],
"^": [0x04,0x02,0x01,0x02,0x04],
"_": [0x40,0x40,0x40,0x40,0x40],
"_": [0x00,0x40,0x40,0x40,0x40],
"`": [0x00,0x01,0x02,0x04,0x00],
"a": [0x20,0x54,0x54,0x54,0x78],
......@@ -104,6 +105,14 @@ FONT = {
"}": [0x00,0x41,0x36,0x08,0x00],
"~": [0x0C,0x02,0x0C,0x10,0x0C],
"\x7f": [0x55,0xAA,0x55,0xAA,0x55],
u"ä" : [0x20,0x55,0x54,0x55,0x78],
u"ü": [0x3C,0x41,0x40,0x21,0x7C],
u"ö": [0x38,0x45,0x44,0x45,0x38],
u"Ä": [0x7C,0x13,0x12,0x13,0x7C],
u"Ü": [0x3E,0x41,0x40,0x41,0x3E],
u"Ö": [0x3C,0x43,0x42,0x43,0x3C],
u"ß": [0x7F,0x01,0x49,0x4e,0x30],
}
import client
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment