Skip to content

Commit b704b9d

Browse files
committed
Update to MicroHydra 0.5
1 parent b462805 commit b704b9d

File tree

9 files changed

+817
-195
lines changed

9 files changed

+817
-195
lines changed

ports/esp32/boards/MICROHYDRA/font/NotoSansMono_32.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
# Converted from NotoSansMono-Regular.ttf using:
33
# ./write_font_converter.py NotoSansMono-Regular.ttf 32 -c 0x20-0x7f
44

5-
MAP = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
5+
MAP = const(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~")
66
BPP = 1
77
HEIGHT = 34
88
MAX_WIDTH = 19
9-
_WIDTHS = \
9+
_WIDTHS = const(\
1010
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13'\
1111
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13'\
1212
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13'\
1313
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13'\
1414
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13'\
15-
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13'
15+
b'\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13\x13')
1616

1717
OFFSET_WIDTH = 2
18-
_OFFSETS = \
18+
_OFFSETS = const(\
1919
b'\x00\x00\x02\x86\x05\x0c\x07\x92\x0a\x18\x0c\x9e\x0f\x24\x11\xaa'\
2020
b'\x14\x30\x16\xb6\x19\x3c\x1b\xc2\x1e\x48\x20\xce\x23\x54\x25\xda'\
2121
b'\x28\x60\x2a\xe6\x2d\x6c\x2f\xf2\x32\x78\x34\xfe\x37\x84\x3a\x0a'\
@@ -27,9 +27,9 @@
2727
b'\xa1\x80\xa4\x06\xa6\x8c\xa9\x12\xab\x98\xae\x1e\xb0\xa4\xb3\x2a'\
2828
b'\xb5\xb0\xb8\x36\xba\xbc\xbd\x42\xbf\xc8\xc2\x4e\xc4\xd4\xc7\x5a'\
2929
b'\xc9\xe0\xcc\x66\xce\xec\xd1\x72\xd3\xf8\xd6\x7e\xd9\x04\xdb\x8a'\
30-
b'\xde\x10\xe0\x96\xe3\x1c\xe5\xa2\xe8\x28\xea\xae\xed\x34\xef\xba'
30+
b'\xde\x10\xe0\x96\xe3\x1c\xe5\xa2\xe8\x28\xea\xae\xed\x34\xef\xba')
3131

32-
_BITMAPS =\
32+
_BITMAPS =const(\
3333
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
3434
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
3535
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
@@ -514,7 +514,7 @@
514514
b'\x01\x03\x00\x20\x60\x04\x0c\x00\x81\x80\x10\x30\x02\x06\x00\x40'\
515515
b'\xc0\x08\x18\x01\x03\x00\x20\x60\x04\x0c\x00\x81\x80\x10\x30\x02'\
516516
b'\x07\xff\xc0\xff\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
517-
b'\x00\x00\x00\x00\x00\x00\x00\x00'
517+
b'\x00\x00\x00\x00\x00\x00\x00\x00')
518518

519519
WIDTHS = memoryview(_WIDTHS)
520520
OFFSETS = memoryview(_OFFSETS)

ports/esp32/boards/MICROHYDRA/font/vga1_8x16.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
HEIGHT = 16
44
FIRST = 0x20
55
LAST = 0x7f
6-
_FONT =\
6+
_FONT =const(\
77
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
88
b'\x00\x00\x18\x3c\x3c\x3c\x18\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
99
b'\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
@@ -99,6 +99,6 @@
9999
b'\x00\x00\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x00\x00\x00\x00'\
100100
b'\x00\x00\x70\x18\x18\x18\x0e\x18\x18\x18\x18\x70\x00\x00\x00\x00'\
101101
b'\x00\x76\xdc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
102-
b'\x00\x00\x00\x00\x10\x38\x6c\xc6\xc6\xc6\xfe\x00\x00\x00\x00\x00'\
102+
b'\x00\x00\x00\x00\x10\x38\x6c\xc6\xc6\xc6\xfe\x00\x00\x00\x00\x00')
103103

104104
FONT = memoryview(_FONT)

ports/esp32/boards/MICROHYDRA/font/vga2_16x32.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
HEIGHT = 32
33
FIRST = 0x00
44
LAST = 0xff
5-
_FONT = \
5+
_FONT = const(\
66
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
77
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x60\x06\x60\x06\xc0\x03\xc0\x03\xcc\x33\xcc\x33\xc0\x03\xc0\x03\xc0\x03\xc0\x03\xcf\xf3\xcf\xf3\xc3\xc3\xc3\xc3\xc0\x03\xc0\x03\x60\x06\x60\x06\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
88
b'\x00\x00\x00\x00\x00\x00\x00\x00\x3f\xfc\x3f\xfc\x7f\xfe\x7f\xfe\xff\xff\xff\xff\xf3\xcf\xf3\xcf\xff\xff\xff\xff\xff\xff\xff\xff\xf0\x0f\xf0\x0f\xfc\x3f\xfc\x3f\xff\xff\xff\xff\x7f\xfe\x7f\xfe\x3f\xfc\x3f\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
@@ -258,7 +258,7 @@
258258
b'\x00\x00\x00\x00\x7f\x80\x7f\x80\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x70\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
259259
b'\x00\x00\x00\x00\x3f\x00\x3f\x00\xe1\xc0\xe1\xc0\x01\xc0\x01\xc0\x07\x00\x07\x00\x1c\x00\x1c\x00\x70\x00\x70\x00\xff\xc0\xff\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
260260
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x1f\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
261-
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
261+
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
262262

263263
FONT = memoryview(_FONT)
264264

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
HEIGHT = 10
2+
WIDTH = 20
3+
COLORS = 2
4+
BITS = 400
5+
BPP = 2
6+
7+
_full =const(\
8+
b'\x55\x55\x55\x55\x50\x55\x55\x55\x55\x50\x55\x55\x55\x55\x50\x55'\
9+
b'\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55'\
10+
b'\x55\x55\x55\x55\x55\x55\x55\x50\x55\x55\x55\x55\x50\x55\x55\x55'\
11+
b'\x55\x50')
12+
FULL = memoryview(_full)
13+
14+
_high =const(\
15+
b'\x55\x55\x55\x55\x50\x55\x55\x55\x40\x10\x55\x55\x55\x40\x10\x55'\
16+
b'\x55\x55\x40\x15\x55\x55\x55\x40\x01\x55\x55\x55\x40\x01\x55\x55'\
17+
b'\x55\x40\x15\x55\x55\x55\x40\x10\x55\x55\x55\x40\x10\x55\x55\x55'\
18+
b'\x55\x50')
19+
HIGH = memoryview(_high)
20+
21+
_low =const(\
22+
b'\x55\x55\x55\x55\x50\x55\x50\x00\x00\x10\x55\x50\x00\x00\x10\x55'\
23+
b'\x50\x00\x00\x15\x55\x50\x00\x00\x01\x55\x50\x00\x00\x01\x55\x50'\
24+
b'\x00\x00\x15\x55\x50\x00\x00\x10\x55\x50\x00\x00\x10\x55\x55\x55'\
25+
b'\x55\x50')
26+
LOW = memoryview(_low)
27+
28+
_empty =const(\
29+
b'\x55\x55\x55\x55\x50\x40\x00\x00\x00\x10\x40\x00\x00\x00\x10\x40'\
30+
b'\x00\x00\x00\x15\x40\x00\x00\x00\x01\x40\x00\x00\x00\x01\x40\x00'\
31+
b'\x00\x00\x15\x40\x00\x00\x00\x10\x40\x00\x00\x00\x10\x55\x55\x55'\
32+
b'\x55\x50')
33+
EMPTY = memoryview(_empty)

0 commit comments

Comments
 (0)