Skip to content

Commit 8c8b0f7

Browse files
Remove unused imports
Remove usage of max_size from displayio.Group Remove usage of max_glyphs from Label
1 parent e69aaf2 commit 8c8b0f7

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

  • CircuitPython_RPN_Calculator

CircuitPython_RPN_Calculator/code.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
from adafruit_display_text.label import Label
77
from adafruit_hid.keyboard import Keyboard
88
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
9-
from adafruit_hid.keycode import Keycode
109
from jepler_udecimal import Decimal, getcontext, localcontext
11-
import jepler_udecimal.utrig
1210
import board
1311
import digitalio
1412
import displayio
1513
import framebufferio
1614
import microcontroller
1715
import sharpdisplay
18-
import supervisor
1916
import terminalio
2017

2118
try:
@@ -199,15 +196,15 @@ def __init__(self):
199196
self.keyboard = None
200197
self.keyboard_layout = None
201198

202-
g = displayio.Group(max_size=7)
199+
g = displayio.Group()
203200

204201
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))
202+
labels.append(Label(terminalio.FONT, scale=2, color=0))
203+
labels.append(Label(terminalio.FONT, scale=3, 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))
211208

212209
for li in labels:
213210
g.append(li)

0 commit comments

Comments
 (0)