Update code-fast.py

This commit is contained in:
Anne Barela 2023-03-29 17:49:14 -04:00 committed by GitHub
parent f3edbb18d2
commit 863b0f30e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,10 +7,11 @@
# Documentation:
# https://docs.circuitpython.org/en/latest/shared-bindings/gifio/
# Updated 3/29/2023
import board
import struct
import gifio
import time
import struct
import board
import gifio
display = board.DISPLAY
# Take over display to drive directly
@ -19,7 +20,7 @@ display_bus = display.bus
try:
odg = gifio.OnDiskGif('/sample.gif')
except OSError: # pylint: disable=broad-except
except OSError: # pylint: disable=broad-except, raise-missing-from
raise Exception("sample.gif was not found\n")
start = time.monotonic()
next_delay = odg.next_frame() # Load the first frame