Skip to content

Commit 328a087

Browse files
committed
Example fix
1 parent 26bab62 commit 328a087

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shared-bindings/gifio/OnDiskGif.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@
4848
//|
4949
//| odg = gifio.OnDiskGif('/sample.gif')
5050
//| odg.next_frame() # Load the first frame
51-
//| face = displayio.TileGrid(odg, pixel_shader=displayio.ColorConverter(input_colorspace=displayio.Colorspace.RGB565))
51+
//| # Depending on your display the next line may need Colorspace.RGB565 instead of Colorspace.RGB565_SWAPPED
52+
//| face = displayio.TileGrid(odg.bitmap, pixel_shader=displayio.ColorConverter(input_colorspace=displayio.Colorspace.RGB565_SWAPPED))
5253
//| splash.append(face)
5354
//| board.DISPLAY.refresh()
5455
//|
5556
//| # Wait forever
5657
//| while True:
57-
//| gif.next_frame()
58-
//| time.sleep(0.1)"""
58+
//| next_delay = odg.next_frame()
59+
//| time.sleep(next_delay)"""
5960
//|
6061
//| def __init__(self, file: str) -> None:
6162
//| """Create an OnDiskGif object with the given file.

0 commit comments

Comments
 (0)