Merge pull request #27 from lesamouraipourpre/max-size
Remove max_size parameter
This commit is contained in:
commit
65c9d711b1
4 changed files with 7 additions and 7 deletions
|
|
@ -44,7 +44,7 @@ Usage Example
|
|||
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
|
||||
|
||||
# Make the display context
|
||||
splash = displayio.Group(max_size=10)
|
||||
splash = displayio.Group()
|
||||
display.show(splash)
|
||||
|
||||
color_bitmap = displayio.Bitmap(320, 240, 1)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
|
|||
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
|
||||
|
||||
# Make the display context
|
||||
splash = displayio.Group(max_size=10)
|
||||
splash = displayio.Group()
|
||||
display.show(splash)
|
||||
|
||||
# Draw a green background
|
||||
|
|
@ -45,7 +45,7 @@ inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=20
|
|||
splash.append(inner_sprite)
|
||||
|
||||
# Draw a label
|
||||
text_group = displayio.Group(max_size=10, scale=3, x=57, y=120)
|
||||
text_group = displayio.Group(scale=3, x=57, y=120)
|
||||
text = "Hello World!"
|
||||
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
|
||||
text_group.append(text_area) # Subgroup for text scaling
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)
|
|||
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
|
||||
|
||||
# Make the display context
|
||||
splash = displayio.Group(max_size=10)
|
||||
splash = displayio.Group()
|
||||
display.show(splash)
|
||||
|
||||
# Draw a green background
|
||||
|
|
@ -50,7 +50,7 @@ inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=20
|
|||
splash.append(inner_sprite)
|
||||
|
||||
# Draw a label
|
||||
text_group = displayio.Group(max_size=10, scale=3, x=57, y=120)
|
||||
text_group = displayio.Group(scale=3, x=57, y=120)
|
||||
text = "Hello World!"
|
||||
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
|
||||
text_group.append(text_area) # Subgroup for text scaling
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ display_bus = displayio.FourWire(
|
|||
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
|
||||
|
||||
# Make the display context
|
||||
splash = displayio.Group(max_size=10)
|
||||
splash = displayio.Group()
|
||||
display.show(splash)
|
||||
|
||||
# Draw a green background
|
||||
|
|
@ -47,7 +47,7 @@ inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=20
|
|||
splash.append(inner_sprite)
|
||||
|
||||
# Draw a label
|
||||
text_group = displayio.Group(max_size=10, scale=3, x=57, y=120)
|
||||
text_group = displayio.Group(scale=3, x=57, y=120)
|
||||
text = "Hello World!"
|
||||
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
|
||||
text_group.append(text_area) # Subgroup for text scaling
|
||||
|
|
|
|||
Loading…
Reference in a new issue