23 print("WiFi connected:", '.'.join(str(i) for i in pw.get_ip_address())) |
23 print("WiFi connected:", '.'.join(str(i) for i in pw.get_ip_address())) |
24 else: |
24 else: |
25 pw.set_led(64, 0, 0) |
25 pw.set_led(64, 0, 0) |
26 print("WiFi connection failed") |
26 print("WiFi connection failed") |
27 |
27 |
28 connectWiFi() |
28 connect_wifi() |
29 except ImportError: |
29 except ImportError: |
30 print("WiFi secrets are kept in 'secrets.py', please add them there!") |
30 print("WiFi secrets are kept in 'secrets.py', please add them there!") |