From 328a08729dafc4fdf9bd3d9b20a5f47547466e06 Mon Sep 17 00:00:00 2001 From: gamblor21 Date: Sat, 25 Feb 2023 09:16:33 -0600 Subject: [PATCH] Example fix --- shared-bindings/gifio/OnDiskGif.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shared-bindings/gifio/OnDiskGif.c b/shared-bindings/gifio/OnDiskGif.c index 83cf5539e7..2ce902a497 100644 --- a/shared-bindings/gifio/OnDiskGif.c +++ b/shared-bindings/gifio/OnDiskGif.c @@ -48,14 +48,15 @@ //| //| odg = gifio.OnDiskGif('/sample.gif') //| odg.next_frame() # Load the first frame -//| face = displayio.TileGrid(odg, pixel_shader=displayio.ColorConverter(input_colorspace=displayio.Colorspace.RGB565)) +//| # Depending on your display the next line may need Colorspace.RGB565 instead of Colorspace.RGB565_SWAPPED +//| face = displayio.TileGrid(odg.bitmap, pixel_shader=displayio.ColorConverter(input_colorspace=displayio.Colorspace.RGB565_SWAPPED)) //| splash.append(face) //| board.DISPLAY.refresh() //| //| # Wait forever //| while True: -//| gif.next_frame() -//| time.sleep(0.1)""" +//| next_delay = odg.next_frame() +//| time.sleep(next_delay)""" //| //| def __init__(self, file: str) -> None: //| """Create an OnDiskGif object with the given file.