Skip to content

Commit 2a29dfc

Browse files
authored
Merge pull request #25 from lesamouraipourpre/max-size
Remove max_size parameter
2 parents b6e7521 + ea6e6d9 commit 2a29dfc

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Usage Example
6161
display = ST7735R(display_bus, width=128, height=128, colstart=2, rowstart=1)
6262
6363
# Make the display context
64-
splash = displayio.Group(max_size=10)
64+
splash = displayio.Group()
6565
display.show(splash)
6666
6767
color_bitmap = displayio.Bitmap(128, 128, 1)

examples/st7735r_128x160_colored_labels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
)
2929

3030
# Make the display context
31-
splash = displayio.Group(max_size=10)
31+
splash = displayio.Group()
3232
display.show(splash)
3333

3434
color_bitmap = displayio.Bitmap(160, 80, 1)
3535
color_palette = displayio.Palette(1)
3636
# write some text in each font color, rgb, cmyk
3737
color_palette[0] = 0x111111 # light grey
3838

39-
text_group_left = displayio.Group(max_size=10, scale=1, x=0, y=6)
39+
text_group_left = displayio.Group(scale=1, x=0, y=6)
4040
text_area_red = label.Label(terminalio.FONT, text="RED", color=0xFF0000)
4141
text_area_green = label.Label(terminalio.FONT, text="\nGREEN", color=0x00FF00)
4242
text_area_blue = label.Label(terminalio.FONT, text="\n\nBLUE", color=0x0000FF)
@@ -47,7 +47,7 @@
4747
text_group_left.append(text_area_white)
4848
splash.append(text_group_left)
4949

50-
text_group_right = displayio.Group(max_size=10, scale=1, x=80, y=6)
50+
text_group_right = displayio.Group(scale=1, x=80, y=6)
5151
text_area_cyan = label.Label(terminalio.FONT, text="CYAN", color=0x00FFFF)
5252
text_group_right.append(text_area_cyan)
5353
text_area_magenta = label.Label(terminalio.FONT, text="\nMAGENTA", color=0xFF00FF)

examples/st7735r_128x160_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
display = ST7735R(display_bus, width=160, height=128, rotation=90, bgr=True)
2727

2828
# Make the display context
29-
splash = displayio.Group(max_size=10)
29+
splash = displayio.Group()
3030
display.show(splash)
3131

3232
color_bitmap = displayio.Bitmap(160, 128, 1)
@@ -44,7 +44,7 @@
4444
splash.append(inner_sprite)
4545

4646
# Draw a label
47-
text_group = displayio.Group(max_size=10, scale=2, x=11, y=64)
47+
text_group = displayio.Group(scale=2, x=11, y=64)
4848
text = "Hello World!"
4949
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
5050
text_group.append(text_area) # Subgroup for text scaling

examples/st7735r_minitft_featherwing_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
)
3434

3535
# Make the display context
36-
splash = displayio.Group(max_size=10)
36+
splash = displayio.Group()
3737
display.show(splash)
3838

3939
color_bitmap = displayio.Bitmap(160, 80, 1)
@@ -51,7 +51,7 @@
5151
splash.append(inner_sprite)
5252

5353
# Draw a label
54-
text_group = displayio.Group(max_size=10, scale=2, x=11, y=40)
54+
text_group = displayio.Group(scale=2, x=11, y=40)
5555
text = "Hello World!"
5656
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
5757
text_group.append(text_area) # Subgroup for text scaling

examples/st7735r_minitft_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
)
2929

3030
# Make the display context
31-
splash = displayio.Group(max_size=10)
31+
splash = displayio.Group()
3232
display.show(splash)
3333

3434
color_bitmap = displayio.Bitmap(160, 80, 1)
@@ -46,7 +46,7 @@
4646
splash.append(inner_sprite)
4747

4848
# Draw a label
49-
text_group = displayio.Group(max_size=10, scale=2, x=11, y=40)
49+
text_group = displayio.Group(scale=2, x=11, y=40)
5050
text = "Hello World!"
5151
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
5252
text_group.append(text_area) # Subgroup for text scaling

examples/st7735r_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
display = ST7735R(display_bus, width=128, height=128, colstart=2, rowstart=1)
2727

2828
# Make the display context
29-
splash = displayio.Group(max_size=10)
29+
splash = displayio.Group()
3030
display.show(splash)
3131

3232
color_bitmap = displayio.Bitmap(128, 128, 1)

0 commit comments

Comments
 (0)