Skip to content

Commit ca06d3c

Browse files
Remove out-of-date DISPLAY.wait_for_frame()
1 parent 0ebf78d commit ca06d3c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

HalloWing_Jump_Scare_Trap/hallowing_jump_scare_trap.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ def show_image(filename):
108108

109109
backlight.duty_cycle = 0
110110
splash.append(face)
111-
# Wait for the image to load.
112-
try:
113-
board.DISPLAY.refresh(target_frames_per_second=60)
114-
except AttributeError:
115-
board.DISPLAY.wait_for_frame()
111+
board.DISPLAY.refresh(target_frames_per_second=60)
116112
backlight.duty_cycle = max_brightness
117113

118114
beep(1) # startup beep

0 commit comments

Comments
 (0)