Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Commit 3c31fe7

Browse files
committed
Update WiPy example
1 parent 21f0ca0 commit 3c31fe7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/hardware/PyCom_WiPy_1.0.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
Social networks: http://www.fb.com/blynkapp
1111
http://twitter.com/blynk_app
1212
13-
This example shows how to initialize your WiPy 1.0 board
13+
This example shows how to initialize your WiPy board
1414
and connect it to Blynk.
1515
1616
Don't forget to change WIFI_SSID, WIFI_AUTH and BLYNK_AUTH ;)
1717
"""
1818

1919
import BlynkLib
2020
from network import WLAN
21-
import machine
21+
import machine, time
2222

2323
WIFI_SSID = 'YourWiFiNetwork'
2424
WIFI_PASS = 'YourWiFiPassword'
@@ -29,7 +29,7 @@
2929
wifi = WLAN(mode=WLAN.STA)
3030
wifi.connect(ssid=WIFI_SSID, auth=(WLAN.WPA2, WIFI_PASS))
3131
while not wifi.isconnected():
32-
pass
32+
time.sleep_ms(50)
3333

3434
print('IP: ', wifi.ifconfig()[0])
3535

0 commit comments

Comments
 (0)