Merge pull request #95 from RetiredWizard/main
Remove depreciated .show from library
This commit is contained in:
commit
b00cf59abf
2 changed files with 3 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ class GraphicsBase:
|
||||||
|
|
||||||
# set the default background
|
# set the default background
|
||||||
if default_bg is not None:
|
if default_bg is not None:
|
||||||
self.display.show(self.splash)
|
self.display.root_group = self.splash
|
||||||
self.set_background(default_bg)
|
self.set_background(default_bg)
|
||||||
|
|
||||||
gc.collect()
|
gc.collect()
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ See MatrixPortal, MagTag, and PyPortal libraries for more examples.
|
||||||
|
|
||||||
|
|
||||||
import board
|
import board
|
||||||
|
import displayio
|
||||||
from adafruit_pyportal import PyPortal
|
from adafruit_pyportal import PyPortal
|
||||||
|
|
||||||
# Set a data source URL
|
# Set a data source URL
|
||||||
|
|
@ -20,7 +21,7 @@ TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
|
||||||
pyportal = PyPortal(url=TEXT_URL, status_neopixel=board.NEOPIXEL)
|
pyportal = PyPortal(url=TEXT_URL, status_neopixel=board.NEOPIXEL)
|
||||||
|
|
||||||
# Set display to show REPL
|
# Set display to show REPL
|
||||||
board.DISPLAY.show(None)
|
board.DISPLAY.root_group = displayio.CIRCUITPYTHON_TERMINAL
|
||||||
|
|
||||||
# Go get that data
|
# Go get that data
|
||||||
print("Fetching text from", TEXT_URL)
|
print("Fetching text from", TEXT_URL)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue