File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 43
43
//| import displayio
44
44
//| import time
45
45
//|
46
+ //| display = board.DISPLAY
46
47
//| splash = displayio.Group()
47
- //| board.DISPLAY.show( splash)
48
+ //| display.root_group = splash
48
49
//|
49
50
//| odg = gifio.OnDiskGif('/sample.gif')
50
51
//| odg.next_frame() # Load the first frame
51
- //| face = displayio.TileGrid(odg, pixel_shader=displayio.ColorConverter(input_colorspace=displayio.Colorspace.RGB565))
52
+ //| # Depending on your display the next line may need Colorspace.RGB565 instead of Colorspace.RGB565_SWAPPED
53
+ //| face = displayio.TileGrid(odg.bitmap, pixel_shader=displayio.ColorConverter(input_colorspace=displayio.Colorspace.RGB565_SWAPPED))
52
54
//| splash.append(face)
53
55
//| board.DISPLAY.refresh()
54
56
//|
55
57
//| # Wait forever
56
58
//| while True:
57
- //| gif .next_frame()
58
- //| time.sleep(0.1 )"""
59
+ //| next_delay = odg .next_frame()
60
+ //| time.sleep(next_delay )"""
59
61
//|
60
62
//| def __init__(self, file: str) -> None:
61
63
//| """Create an OnDiskGif object with the given file.
You can’t perform that action at this time.
0 commit comments