You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
11
11
12
-
## How to Install Micropython library
12
+
## How to Install the Micropython library
13
13
14
14
### 1. install mpremote
15
15
@@ -36,11 +36,51 @@ Windows
36
36
37
37
__NOTE: DO NOT USE LAB FOR MICROPYTHON TO UPLOAD BIN FILES__
38
38
39
+
### 2.1 mip (MicroPython Package Manager)
40
+
This is the recommended method for boards which can connect to Internet.
41
+
Run the following MicroPython script using your favourite editor:
42
+
43
+
```py
44
+
import network
45
+
import mip
46
+
import time
47
+
48
+
SSID='YOUR WIFI NETWORK NAME (must be 2.4GHz)'
49
+
PWD='YOUR WIFI PASSWORD'
50
+
51
+
interface = network.WLAN(network.STA_IF)
52
+
interface.active(False)
53
+
time.sleep(0.1)
54
+
interface.active(True)
55
+
56
+
defconnect(ssid, pwd):
57
+
interface.connect(ssid, pwd)
58
+
# Network Connection Progress
59
+
max_dot_cols =20
60
+
dot_col =0
61
+
print()
62
+
print(f"Connecting to {ssid}")
63
+
whilenot interface.isconnected():
64
+
if(dot_col % max_dot_cols ==0):
65
+
print()
66
+
print('.', end='')
67
+
dot_col +=1
68
+
time.sleep_ms(100)
69
+
print()
70
+
print(f'{"C"if interface.isconnected() else"NOT c"}onnected to network')
71
+
72
+
connect(SSID, PWD)
73
+
mip.install('github:arduino/arduino-alvik-mpy')
74
+
75
+
```
76
+
39
77
<br>
40
78
<br>
41
79
42
80
### 3. Update firmware on your Arduino® Alvik
43
81
82
+
You can find the latest Arduino Alvik Carrier Firmware code and pre-compiled binary [here](https://github.com/arduino-libraries/Arduino_AlvikCarrier/releases/latest)
0 commit comments