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 552d0a6 commit f3edbb1Copy full SHA for f3edbb1
CircuitPython_gifio/Single/code-slow.py
@@ -4,18 +4,18 @@
4
# Documentation:
5
# https://docs.circuitpython.org/en/latest/shared-bindings/gifio/
6
# Updated 3/29/2023
7
+import time
8
import board
9
import gifio
10
import displayio
-import time
11
12
display = board.DISPLAY
13
splash = displayio.Group()
14
display.root_group = splash
15
16
try:
17
odg = gifio.OnDiskGif('/sample.gif')
18
-except OSError: # pylint: disable=broad-except
+except OSError: # pylint: disable=broad-except, raise-missing-from
19
raise Exception("sample.gif was not found\n")
20
start = time.monotonic()
21
next_delay = odg.next_frame() # Load the first frame
0 commit comments