Skip to content

Commit b00cf59

Browse files
authored
Merge pull request #95 from RetiredWizard/main
Remove depreciated .show from library
2 parents 2d48a6b + faaf9be commit b00cf59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

adafruit_portalbase/graphics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, display, *, default_bg=0x000000, scale=1, debug=False):
5656

5757
# set the default background
5858
if default_bg is not None:
59-
self.display.show(self.splash)
59+
self.display.root_group = self.splash
6060
self.set_background(default_bg)
6161

6262
gc.collect()

examples/portalbase_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313
import board
14+
import displayio
1415
from adafruit_pyportal import PyPortal
1516

1617
# Set a data source URL
@@ -20,7 +21,7 @@
2021
pyportal = PyPortal(url=TEXT_URL, status_neopixel=board.NEOPIXEL)
2122

2223
# Set display to show REPL
23-
board.DISPLAY.show(None)
24+
board.DISPLAY.root_group = displayio.CIRCUITPYTHON_TERMINAL
2425

2526
# Go get that data
2627
print("Fetching text from", TEXT_URL)

0 commit comments

Comments
 (0)