Skip to content

Commit 02d0e59

Browse files
committed
fixes per feedback, discord
1 parent acefa00 commit 02d0e59

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

PyPortal_Quarantine_Clock/code.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252

5353
# initialize pyportal
5454
pyportal = PyPortal(esp=esp,
55-
external_spi=spi,
56-
default_bg = None)
55+
external_spi=spi)
5756

5857
# set pyportal's backlight brightness
5958
pyportal.set_backlight(0.7)
@@ -63,14 +62,6 @@
6362
print("Firmware vers.", esp.firmware_version)
6463
print("MAC addr:", [hex(i) for i in esp.MAC_address])
6564

66-
print("Connecting to AP...")
67-
while not esp.is_connected:
68-
try:
69-
esp.connect_AP(secrets['ssid'], secrets['password'])
70-
except RuntimeError as e:
71-
print("could not connect to AP, retrying: ", e)
72-
continue
73-
7465
# Set the font and preload letters
7566
font_large = bitmap_font.load_font("/fonts/Helvetica-Bold-44.bdf")
7667
font_small = bitmap_font.load_font("/fonts/Helvetica-Bold-24.bdf")

0 commit comments

Comments
 (0)