Skip to content

Commit 6bd869e

Browse files
committed
README.md installation with mip
link to FW code
1 parent 3837117 commit 6bd869e

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111

12-
## How to Install Micropython library
12+
## How to Install the Micropython library
1313

1414
### 1. install mpremote
1515

@@ -36,11 +36,51 @@ Windows
3636

3737
__NOTE: DO NOT USE LAB FOR MICROPYTHON TO UPLOAD BIN FILES__
3838

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+
def connect(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+
while not 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+
3977
<br>
4078
<br>
4179

4280
### 3. Update firmware on your Arduino® Alvik
4381

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)
83+
4484
Go into `utilities` folder and run:
4585
```shell
4686
Linux

0 commit comments

Comments
 (0)