File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
PyPortal_Quarantine_Clock Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 5252
5353# initialize pyportal
5454pyportal = PyPortal (esp = esp ,
55- external_spi = spi ,
56- default_bg = None )
55+ external_spi = spi )
5756
5857# set pyportal's backlight brightness
5958pyportal .set_backlight (0.7 )
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
7566font_large = bitmap_font .load_font ("/fonts/Helvetica-Bold-44.bdf" )
7667font_small = bitmap_font .load_font ("/fonts/Helvetica-Bold-24.bdf" )
You can’t perform that action at this time.
0 commit comments