-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfont.py
More file actions
executable file
·34 lines (34 loc) · 852 Bytes
/
Copy pathfont.py
File metadata and controls
executable file
·34 lines (34 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/python3
zero = b'\xf0\x90\x90\x90\xf0'
one = b'\x20\x60\x20\x20\x70'
two = b'\xf0\x10\xf0\x80\xf0'
three = b'\xf0\x10\xf0\x10\xf0'
four = b'\x90\x90\xf0\x10\x10'
five = b'\xf0\x80\xf0\x10\xf0'
six = b'\xf0\x80\xf0\x90\xf0'
seven = b'\xf0\x10\x20\x40\x40'
eight = b'\xf0\x90\xf0\x90\xf0'
nine = b'\xf0\x90\xf0\x10\xf0'
a = b'\xf0\x90\xf0\x90\x90'
b = b'\xe0\x90\xe0\x90\xe0'
c = b'\xf0\x80\x80\x80\xf0'
d = b'\xe0\x90\x90\x90\xe0'
e = b'\xf0\x80\xf0\x80\xf0'
f = b'\xf0\x80\xf0\x80\x80'
with open("./font.data", 'wb') as file:
file.write(zero)
file.write(one)
file.write(two)
file.write(three)
file.write(four)
file.write(five)
file.write(six)
file.write(seven)
file.write(eight)
file.write(nine)
file.write(a)
file.write(b)
file.write(c)
file.write(d)
file.write(e)
file.write(f)