Skip to content

Commit 8f9403f

Browse files
committed
show REPL with CIRCUITPYTHON_TERMINAL
1 parent 7311690 commit 8f9403f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/pyportal_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
# NOTE: Make sure you've created your secrets.py file before running this example
66
# https://learn.adafruit.com/adafruit-pyportal/internet-connect#whats-a-secrets-file-17-2
77
import board
8+
from displayio import CIRCUITPYTHON_TERMINAL
89
from adafruit_pyportal import PyPortal
910

11+
1012
# Set a data source URL
1113
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html"
1214

1315
# Create the PyPortal object
1416
pyportal = PyPortal(url=TEXT_URL, status_neopixel=board.NEOPIXEL)
1517

1618
# Set display to show REPL
17-
board.DISPLAY.root_group = None
19+
board.DISPLAY.root_group = CIRCUITPYTHON_TERMINAL
1820

1921
# Go get that data
2022
print("Fetching text from", TEXT_URL)

0 commit comments

Comments
 (0)