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: content/micropython-course/course/01.introduction-python/02.intro-to-micropython.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,17 +146,19 @@ For example, to use a module for a specific sensor, we need to install it **exte
146
146
147
147
### Install External Modules
148
148
149
-
To install an external module, we are going to use a package manager called `mip`. With `mip`, we can install a module on the board by connecting to Wi-Fi® and downloading the module directly to the board. So how do we do this?
149
+
To install an external module, we are going to use a package manager called `mip`. With `mip`, we can install a module on the board by connecting to Wi-Fi® and downloading the module directly to the board. Installing external modules is done in two steps:
150
150
151
-
To download external modules from the internet we first a foremost need a working internet connection. To connect to your local Wi-Fi you can upload the following script to your `boot.py` file. Why `boot.py`?
151
+
1. Establish a Wi-Fi connection.
152
152
153
-
Because we want to make sure our board connects to the internet as soon as it boots up.
153
+
2. Download the module from a specific URL using `mip`.
154
154
155
-
***Please note that you need to add your own Wi-Fi network and password in the `WIFI_NETWORK` and `WIFI_PASSWORD` fields.***
155
+
To connect to your local Wi-Fi you can upload the following script to `boot.py` file. We choose `boot.py` because we want to make sure our board connects to the internet as soon as it boots up.
156
+
157
+
**Connect to Wi-Fi**
156
158
157
159

158
160
159
-
**Connect to Wi-Fi**
161
+
***Please note that you need to add your own Wi-Fi network and password in the `WIFI_NETWORK` and `WIFI_PASSWORD` fields.***
160
162
161
163
```python
162
164
"""
@@ -179,11 +181,12 @@ print("Connected to ",WIFI_NETWORK)
0 commit comments