We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acefa00 commit 02d0e59Copy full SHA for 02d0e59
1 file changed
PyPortal_Quarantine_Clock/code.py
@@ -52,8 +52,7 @@
52
53
# initialize pyportal
54
pyportal = PyPortal(esp=esp,
55
- external_spi=spi,
56
- default_bg = None)
+ external_spi=spi)
57
58
# set pyportal's backlight brightness
59
pyportal.set_backlight(0.7)
@@ -63,14 +62,6 @@
63
62
print("Firmware vers.", esp.firmware_version)
64
print("MAC addr:", [hex(i) for i in esp.MAC_address])
65
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
-
74
# Set the font and preload letters
75
font_large = bitmap_font.load_font("/fonts/Helvetica-Bold-44.bdf")
76
font_small = bitmap_font.load_font("/fonts/Helvetica-Bold-24.bdf")
0 commit comments