Remove out-of-date DISPLAY.wait_for_frame()

This commit is contained in:
James Carr 2021-08-07 23:57:20 +01:00
parent 0ebf78dd04
commit ca06d3c625

View file

@ -108,11 +108,7 @@ def show_image(filename):
backlight.duty_cycle = 0 backlight.duty_cycle = 0
splash.append(face) splash.append(face)
# Wait for the image to load.
try:
board.DISPLAY.refresh(target_frames_per_second=60) board.DISPLAY.refresh(target_frames_per_second=60)
except AttributeError:
board.DISPLAY.wait_for_frame()
backlight.duty_cycle = max_brightness backlight.duty_cycle = max_brightness
beep(1) # startup beep beep(1) # startup beep