|
6 | 6 | from adafruit_display_text.label import Label |
7 | 7 | from adafruit_hid.keyboard import Keyboard |
8 | 8 | from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS |
9 | | -from adafruit_hid.keycode import Keycode |
10 | 9 | from jepler_udecimal import Decimal, getcontext, localcontext |
11 | | -import jepler_udecimal.utrig |
| 10 | +import jepler_udecimal.utrig # Needed for trig functions in Decimal |
12 | 11 | import board |
13 | 12 | import digitalio |
14 | 13 | import displayio |
15 | 14 | import framebufferio |
16 | 15 | import microcontroller |
17 | 16 | import sharpdisplay |
18 | | -import supervisor |
19 | 17 | import terminalio |
20 | 18 |
|
21 | 19 | try: |
@@ -199,15 +197,15 @@ def __init__(self): |
199 | 197 | self.keyboard = None |
200 | 198 | self.keyboard_layout = None |
201 | 199 |
|
202 | | - g = displayio.Group(max_size=7) |
| 200 | + g = displayio.Group() |
203 | 201 |
|
204 | 202 | self.labels = labels = [] |
205 | | - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=2, color=0)) |
206 | | - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) |
207 | | - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) |
208 | | - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) |
209 | | - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) |
210 | | - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) |
| 203 | + labels.append(Label(terminalio.FONT, scale=2, color=0)) |
| 204 | + labels.append(Label(terminalio.FONT, scale=3, color=0)) |
| 205 | + labels.append(Label(terminalio.FONT, scale=3, color=0)) |
| 206 | + labels.append(Label(terminalio.FONT, scale=3, color=0)) |
| 207 | + labels.append(Label(terminalio.FONT, scale=3, color=0)) |
| 208 | + labels.append(Label(terminalio.FONT, scale=3, color=0)) |
211 | 209 |
|
212 | 210 | for li in labels: |
213 | 211 | g.append(li) |
|
0 commit comments