Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adafruit_portalbase/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def __init__(self, display, *, default_bg=0x000000, scale=1, debug=False):

# set the default background
if default_bg is not None:
self.display.show(self.splash)
self.display.root_group = self.splash
self.set_background(default_bg)

gc.collect()
Expand Down
3 changes: 2 additions & 1 deletion examples/portalbase_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@


import board
import displayio
from adafruit_pyportal import PyPortal

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

# Set display to show REPL
board.DISPLAY.show(None)
board.DISPLAY.root_group = displayio.CIRCUITPYTHON_TERMINAL

# Go get that data
print("Fetching text from", TEXT_URL)
Expand Down