diff --git a/CircuitPython_RPN_Calculator/code.py b/CircuitPython_RPN_Calculator/code.py index 9931d9bbc..7f5de552f 100644 --- a/CircuitPython_RPN_Calculator/code.py +++ b/CircuitPython_RPN_Calculator/code.py @@ -6,16 +6,14 @@ from adafruit_display_text.label import Label from adafruit_hid.keyboard import Keyboard from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS -from adafruit_hid.keycode import Keycode from jepler_udecimal import Decimal, getcontext, localcontext -import jepler_udecimal.utrig +import jepler_udecimal.utrig # Needed for trig functions in Decimal import board import digitalio import displayio import framebufferio import microcontroller import sharpdisplay -import supervisor import terminalio try: @@ -199,15 +197,15 @@ def __init__(self): self.keyboard = None self.keyboard_layout = None - g = displayio.Group(max_size=7) + g = displayio.Group() self.labels = labels = [] - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=2, color=0)) - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) - labels.append(Label(terminalio.FONT, max_glyphs=32, scale=3, color=0)) + labels.append(Label(terminalio.FONT, scale=2, color=0)) + labels.append(Label(terminalio.FONT, scale=3, color=0)) + labels.append(Label(terminalio.FONT, scale=3, color=0)) + labels.append(Label(terminalio.FONT, scale=3, color=0)) + labels.append(Label(terminalio.FONT, scale=3, color=0)) + labels.append(Label(terminalio.FONT, scale=3, color=0)) for li in labels: g.append(li)