Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Remove max_size parameter
  • Loading branch information
lesamouraipourpre committed Jul 4, 2021
commit 92e20ac0c366618cdee5677aa8e9955624191045
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Usage Example
display = ST7789(display_bus, width=240, height=240, rowstart=80)

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

color_bitmap = displayio.Bitmap(240, 240, 1)
Expand Down
3 changes: 1 addition & 2 deletions examples/st7789_240x135_pitft_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
)

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

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
Expand All @@ -59,7 +59,6 @@
text_area = label.Label(terminalio.FONT, text=text, color=TEXT_COLOR)
text_width = text_area.bounding_box[2] * FONTSCALE
text_group = displayio.Group(
max_size=10,
scale=FONTSCALE,
x=display.width // 2 - text_width // 2,
y=display.height // 2,
Expand Down
3 changes: 1 addition & 2 deletions examples/st7789_240x135_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
)

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

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
Expand All @@ -57,7 +57,6 @@
text_area = label.Label(terminalio.FONT, text=text, color=TEXT_COLOR)
text_width = text_area.bounding_box[2] * FONTSCALE
text_group = displayio.Group(
max_size=10,
scale=FONTSCALE,
x=display.width // 2 - text_width // 2,
y=display.height // 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)

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

color_bitmap = displayio.Bitmap(display.width, display.height, 1)
Expand All @@ -56,7 +56,6 @@
text_area = label.Label(terminalio.FONT, text=text, color=TEXT_COLOR)
text_width = text_area.bounding_box[2] * FONTSCALE
text_group = displayio.Group(
max_size=10,
scale=FONTSCALE,
x=display.width // 2 - text_width // 2,
y=display.height // 2,
Expand Down
4 changes: 2 additions & 2 deletions examples/st7789_240x240_bonnet_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
)

# 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 @@ -51,7 +51,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
4 changes: 2 additions & 2 deletions examples/st7789_240x240_pitft_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
display = ST7789(display_bus, width=240, height=240, rowstart=80, rotation=180)

# 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 @@ -43,7 +43,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
4 changes: 2 additions & 2 deletions examples/st7789_240x240_simpletest_Pimoroni_Pico_Explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
display = ST7789(display_bus, width=240, height=240, rowstart=80, rotation=180)

# 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 @@ -44,7 +44,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
4 changes: 2 additions & 2 deletions examples/st7789_320x240_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
display = ST7789(display_bus, width=320, height=240, rotation=90)

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

color_bitmap = displayio.Bitmap(320, 240, 1)
Expand All @@ -43,7 +43,7 @@
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
Expand Down
4 changes: 2 additions & 2 deletions examples/st7789_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
display = ST7789(display_bus, width=240, height=240, rowstart=80)

# 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 @@ -43,7 +43,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
4 changes: 2 additions & 2 deletions examples/st7789_tft_gizmo_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)

# 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 @@ -50,7 +50,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