Update root_group for CP 9 compatibility
This commit is contained in:
parent
a54031632a
commit
29f7161faf
7 changed files with 7 additions and 7 deletions
|
|
@ -109,7 +109,7 @@ tg = displayio.TileGrid(
|
|||
),
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
|
||||
sd_spi = busio.SPI(clock=board.IO18, MOSI=board.IO14, MISO=board.IO17)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ tg = displayio.TileGrid(
|
|||
),
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
display.auto_refresh = False
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ tg = displayio.TileGrid(
|
|||
),
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
display.auto_refresh = False
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ tg = displayio.TileGrid(
|
|||
),
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
display.auto_refresh = False
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ tg = TileGrid(
|
|||
bitmap, pixel_shader=ColorConverter(input_colorspace=Colorspace.BGR565_SWAPPED)
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
display.auto_refresh = False
|
||||
while True:
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ tg = displayio.TileGrid(
|
|||
),
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
display.auto_refresh = False
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ tg = TileGrid(
|
|||
bitmap, pixel_shader=ColorConverter(input_colorspace=Colorspace.RGB565_SWAPPED)
|
||||
)
|
||||
g.append(tg)
|
||||
display.show(g)
|
||||
display.root_group = g
|
||||
|
||||
display.auto_refresh = False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue