Skip to content

Commit

Permalink
Merge pull request #95 from RetiredWizard/main
Browse files Browse the repository at this point in the history
Remove depreciated .show from library
  • Loading branch information
dhalbert authored Nov 2, 2023
2 parents 2d48a6b + faaf9be commit b00cf59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit b00cf59

Please sign in to comment.