Skip to content

Commit a0bf826

Browse files
authored
Merge pull request #19 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents f858e08 + a85a1c7 commit a0bf826

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

examples/gizmo_tft_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
display = tft_gizmo.TFT_Gizmo()
1515

1616
# Make the display context
17-
splash = displayio.Group(max_size=10)
17+
splash = displayio.Group()
1818
display.show(splash)
1919

2020
color_bitmap = displayio.Bitmap(240, 240, 1)
@@ -32,7 +32,7 @@
3232
splash.append(inner_sprite)
3333

3434
# Draw a label
35-
text_group = displayio.Group(max_size=10, scale=2, x=50, y=120)
35+
text_group = displayio.Group(scale=2, x=50, y=120)
3636
text = "Hello World!"
3737
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
3838
text_group.append(text_area) # Subgroup for text scaling

examples/gizmo_tft_thermometer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def c_to_f(c_val):
5656
text = "%.2f C" % (round(cp.temperature, 2))
5757

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

6161
# Create a Label to show the initial temperature value
6262
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFFFF)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
Adafruit-Blinka
66
adafruit-circuitpython-busdevice
7+
adafruit-circuitpython-st7789

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
install_requires=[
3737
"Adafruit-Blinka",
3838
"adafruit-circuitpython-busdevice",
39-
"adafruit_st7789",
39+
"adafruit-circuitpython-st7789",
4040
],
4141
# Choose your license
4242
license="MIT",

0 commit comments

Comments
 (0)