Skip to content

Commit 4bfb679

Browse files
committed
Remove wait_for_frame() call when displaying card
Per the release notes for CircuitPython 5.0.0 Alpha 2, calling wait_for_frame is no longer needed, and calling refresh() should accomplish the same goal. Additionally, target_frames_per_second is already set to 60 by default.
1 parent 1a92cb1 commit 4bfb679

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_pybadger.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,7 @@ def show_business_card(self, *, image_name=None, name_string=None, name_scale=1,
295295
on_disk_bitmap = displayio.OnDiskBitmap(file_name)
296296
face_image = displayio.TileGrid(on_disk_bitmap, pixel_shader=displayio.ColorConverter())
297297
business_card_splash.append(face_image)
298-
try:
299-
self.display.refresh(target_frames_per_second=60)
300-
except AttributeError:
301-
self.display.wait_for_frame()
298+
self.display.refresh()
302299

303300
business_card_label_groups = []
304301
if name_string:

0 commit comments

Comments
 (0)