fixes per feedback, discord

This commit is contained in:
brentru 2022-03-10 14:09:44 -05:00
parent acefa00561
commit 02d0e591bc

View file

@ -52,8 +52,7 @@ requests.set_socket(socket, esp)
# initialize pyportal
pyportal = PyPortal(esp=esp,
external_spi=spi,
default_bg = None)
external_spi=spi)
# set pyportal's backlight brightness
pyportal.set_backlight(0.7)
@ -63,14 +62,6 @@ if esp.status == adafruit_esp32spi.WL_IDLE_STATUS:
print("Firmware vers.", esp.firmware_version)
print("MAC addr:", [hex(i) for i in esp.MAC_address])
print("Connecting to AP...")
while not esp.is_connected:
try:
esp.connect_AP(secrets['ssid'], secrets['password'])
except RuntimeError as e:
print("could not connect to AP, retrying: ", e)
continue
# Set the font and preload letters
font_large = bitmap_font.load_font("/fonts/Helvetica-Bold-44.bdf")
font_small = bitmap_font.load_font("/fonts/Helvetica-Bold-24.bdf")