Skip to content

Remove max_size parameter #45

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 1 commit into from
Jul 8, 2021
Merged
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
6 changes: 3 additions & 3 deletions adafruit_pybadger/pybadger_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _create_badge_background(self):
self._created_background = True

if self._background_group is None:
self._background_group = displayio.Group(max_size=30)
self._background_group = displayio.Group()

self.display.show(self._background_group)

Expand Down Expand Up @@ -213,7 +213,7 @@ def _badge_background(
):
"""Populate the background color with a rectangle color block over it as the background for
a name badge."""
background_group = displayio.Group(max_size=30)
background_group = displayio.Group()
color_bitmap = displayio.Bitmap(self.display.width, self.display.height, 1)
color_palette = displayio.Palette(1)
color_palette[0] = background_color
Expand Down Expand Up @@ -512,7 +512,7 @@ def show_business_card(
)
business_card_label_groups.append(email_two_group)

business_card_splash = displayio.Group(max_size=4)
business_card_splash = displayio.Group()
self.display.show(business_card_splash)
with open(image_name, "rb") as file_name:
on_disk_bitmap = displayio.OnDiskBitmap(file_name)
Expand Down