File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments