Skip to content

Remove max_size parameter #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2021
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions examples/gizmo_tft_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
display = tft_gizmo.TFT_Gizmo()

# Make the display context
splash = displayio.Group(max_size=10)
splash = displayio.Group()
display.show(splash)

color_bitmap = displayio.Bitmap(240, 240, 1)
Expand All @@ -32,7 +32,7 @@
splash.append(inner_sprite)

# Draw a label
text_group = displayio.Group(max_size=10, scale=2, x=50, y=120)
text_group = displayio.Group(scale=2, x=50, y=120)
text = "Hello World!"
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
text_group.append(text_area) # Subgroup for text scaling
Expand Down
2 changes: 1 addition & 1 deletion examples/gizmo_tft_thermometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def c_to_f(c_val):
text = "%.2f C" % (round(cp.temperature, 2))

# Create a Group for the text so we can scale it
text_group = displayio.Group(max_size=1, scale=TEXT_SCALE, x=0, y=0)
text_group = displayio.Group(scale=TEXT_SCALE, x=0, y=0)

# Create a Label to show the initial temperature value
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

Adafruit-Blinka
adafruit-circuitpython-busdevice
adafruit-circuitpython-st7789
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
install_requires=[
"Adafruit-Blinka",
"adafruit-circuitpython-busdevice",
"adafruit_st7789",
"adafruit-circuitpython-st7789",
],
# Choose your license
license="MIT",
Expand Down