Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions CircuitPython_RPN_Calculator/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down