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.
1 parent f3edbb1 commit 863b0f3Copy full SHA for 863b0f3
CircuitPython_gifio/Single/code-fast.py
@@ -7,10 +7,11 @@
7
# Documentation:
8
# https://docs.circuitpython.org/en/latest/shared-bindings/gifio/
9
# Updated 3/29/2023
10
-import board
+
11
+import time
12
import struct
13
+import board
14
import gifio
-import time
15
16
display = board.DISPLAY
17
# Take over display to drive directly
@@ -19,7 +20,7 @@
19
20
21
try:
22
odg = gifio.OnDiskGif('/sample.gif')
-except OSError: # pylint: disable=broad-except
23
+except OSError: # pylint: disable=broad-except, raise-missing-from
24
raise Exception("sample.gif was not found\n")
25
start = time.monotonic()
26
next_delay = odg.next_frame() # Load the first frame
0 commit comments