We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb6a1fd + 436015e commit 3894a63Copy full SHA for 3894a63
adafruit_pybadger/pybadger_base.py
@@ -168,8 +168,7 @@ def _create_badge_background(self) -> None:
168
self.root_group = self._background_group
169
170
if self._background_image_filename:
171
- file_handle = open(self._background_image_filename, "rb")
172
- on_disk_bitmap = displayio.OnDiskBitmap(file_handle)
+ on_disk_bitmap = displayio.OnDiskBitmap(self._background_image_filename)
173
background_image = displayio.TileGrid(
174
on_disk_bitmap,
175
pixel_shader=on_disk_bitmap.pixel_shader,
0 commit comments