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/00.first-steps/00.intro-micropython/intro-micropython.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ MicroPython is a lightweight implementation of Python 3 designed to run on micro
12
12
13
13

14
14
15
-
When using MicroPython on Arduino boards, the software is first installed on your Arduino. This allows the board to interpret and run Python code. Once MicroPython is installed on your board (don't worry, we'll cover this [here]()), you can start writing and executing Python scripts instantly.
15
+
When using MicroPython on Arduino boards, the software is first installed on your Arduino. This allows the board to interpret and run Python code. Once MicroPython is installed on your board (don't worry, we'll cover this [here](/micropython/first-steps/install-guide)), you can start writing and executing Python scripts instantly.
16
16
17
17
Unlike traditional development approaches, where you compile code and then flash it to the board, with MicroPython you write Python scripts and run them instantly on your Arduino. This makes the development process much faster and more interactive.
18
18
@@ -38,7 +38,7 @@ The MicroPython installation includes several key components:
38
38
39
39
## How to Program for MicroPython
40
40
41
-
Programming in MicroPython involves writing Python scripts in a text editor and then running them on your board. For this, we can use the [Arduino Lab for MicroPython]().
41
+
Programming in MicroPython involves writing Python scripts in a text editor and then running them on your board. For this, we can use the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython).
42
42
43
43
When writing MicroPython code, it's essential to think in terms of **modularity**. A good practice is to break down your code into smaller, reusable modules rather than writing everything in one large file. This approach makes it easier to manage and maintain code, especially for larger projects.
Copy file name to clipboardExpand all lines: content/micropython/00.first-steps/01.install-guide/installing-micropython.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,6 @@ By following these steps, you should be able to successfully install MicroPython
113
113
### Next Steps
114
114
115
115
This tutorial is **Part Two** of the **"First Steps"** series. We recommend you following the next tutorial that will allow you to control the Arduino board's LED.
116
-
-[First Steps - Part Three]()
116
+
-[First Steps - My First Script](/micropython/first-steps/first-script)
Copy file name to clipboardExpand all lines: content/micropython/00.first-steps/02.first-script/first-script.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -41,13 +41,13 @@ MicroPython is officially supported on several Arduino boards. Here’s a list o
41
41
42
42
## Board and Editor Setup
43
43
44
-
1. Open the [Arduino Lab for MicroPython]() application.
44
+
1. Open the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython) application.
45
45
2. Plug the Arduino board into the computer using a USB cable.
46
46

47
47
3. Press the connection button on the top left corner of the window. The connected Arduino board should appear (by its port name), and we can click it:
48
48

49
49
50
-
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
50
+
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide](/micropython/first-steps/install-guide).***
Copy file name to clipboardExpand all lines: content/micropython/01.basics/00.digital-io/digital-io.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -60,13 +60,13 @@ In this guide, we will be using some additional electronic components:
60
60
61
61
## Board and Editor Setup
62
62
63
-
1. Open the [Arduino Lab for MicroPython]() application.
63
+
1. Open the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython) application.
64
64
2. Plug the Arduino board into the computer using a USB cable.
65
65

66
66
3. Press the connection button on the top left corner of the window. The connected Arduino board should appear (by its port name), and we can click it:
67
67

68
68
69
-
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
69
+
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide](/micropython/first-steps/install-guide).***
Copy file name to clipboardExpand all lines: content/micropython/01.basics/01.analog-io/analog-io.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -52,13 +52,13 @@ In this guide, we will be using some additional electronic components:
52
52
53
53
## Board and Editor Setup
54
54
55
-
1. Open the [Arduino Lab for MicroPython]() application.
55
+
1. Open the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython) application.
56
56
2. Plug the Arduino board into the computer using a USB cable.
57
57

58
58
3. Press the connection button on the top left corner of the window. The connected Arduino board should appear (by its port name), and we can click it:
59
59

60
60
61
-
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
61
+
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide](/micropython/first-steps/install-guide).***
Copy file name to clipboardExpand all lines: content/micropython/01.basics/02.loops/loops.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -41,13 +41,13 @@ MicroPython is officially supported on several Arduino boards. Here’s a list o
41
41
42
42
## Board and Editor Setup
43
43
44
-
1. Open the [Arduino Lab for MicroPython]() application.
44
+
1. Open the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython) application.
45
45
2. Plug the Arduino board into the computer using a USB cable.
46
46

47
47
3. Press the connection button on the top left corner of the window. The connected Arduino board should appear (by its port name), and we can click it:
48
48

49
49
50
-
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
50
+
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide](/micropython/first-steps/install-guide).***
Copy file name to clipboardExpand all lines: content/micropython/01.basics/03.data-logger/data-logger.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Data logging using MicroPython is a great feature, as we can use the board's fil
9
9
10
10
In this tutorial, we will create a `.csv` file, make some readings from an analog pin, and store the data in the file. The file can then be accessed via the Arduino Lab for MicroPython editor.
11
11
12
-
***To learn more about the MicroPython file system, visit [this article]().***
12
+
***To learn more about the MicroPython file system, visit [this article](/micropython/environment/file-system).***
13
13
14
14
## Requirements
15
15
@@ -43,13 +43,13 @@ MicroPython is officially supported on several Arduino boards. Here’s a list o
43
43
44
44
## Board and Editor Setup
45
45
46
-
1. Open the [Arduino Lab for MicroPython]() application.
46
+
1. Open the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython) application.
47
47
2. Plug the Arduino board into the computer using a USB cable.
48
48

49
49
3. Press the connection button on the top left corner of the window. The connected Arduino board should appear (by its port name), and we can click it:
50
50

51
51
52
-
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
52
+
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide](/micropython/first-steps/install-guide).***
Copy file name to clipboardExpand all lines: content/micropython/02.environment/00.online-editor/online-editor.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,21 @@ description: 'The Arduino Lab for MicroPython is an online code editor for writi
4
4
author: 'Karl Söderby'
5
5
---
6
6
7
-
The [Arduino Lab for MicroPython](https://lab-micropython.arduino.cc/) is an online code editor that allows you to load MicroPython scripts to your Arduino board. This editor is part of the [Arduino Cloud](), and is free to use for everyone.
7
+
The [Arduino Lab for MicroPython](https://lab-micropython.arduino.cc/) is an online code editor that allows you to load MicroPython scripts to your Arduino board. This editor is part of the [Arduino Cloud](https://app.arduino.cc/), and is free to use for everyone.
8
8
9
9
In this tutorial, we will take a look at how we can access it, and test it out by writing a simple script.
10
10
11
-
***Note that this tutorial does not go in depth on how the Arduino Lab for MicroPython works. For more details, you can visit the [guide to the Arduino Lab for MicroPython]().***
11
+
***Note that this tutorial does not go in depth on how the Arduino Lab for MicroPython works. For more details, you can visit the [guide to the Arduino Lab for MicroPython](/micropython/environment/code-editor).***
12
12
13
13
## Requirements
14
14
15
15
-**Google Chrome, Opera, Edge** - these are the currently supported browsers.
***To follow these steps, you will need to have MicroPython installed on your board. Haven't done this yet? Don't worry, check out the [Installing MicroPython]() guide.***
21
+
***To follow these steps, you will need to have MicroPython installed on your board. Haven't done this yet? Don't worry, check out the [Installing MicroPython](/micropython/environment/code-editor) guide.***
22
22
23
23
Setting up the online environment is quick and easy. Follow the steps below to achieve it:
Copy file name to clipboardExpand all lines: content/micropython/02.environment/01.code-editor/code-editor.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,10 @@ Arduino Lab for MicroPython includes a user-friendly code editor that helps us w
9
9
10
10
## Requirements
11
11
12
-
-[Arduino Lab for MicroPython]()
12
+
-[Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython)
13
13
-**MicroPython compatible board** (not required for using the editor, but for running any code).
14
14
15
-
***Note that the Arduino Lab for MicroPython is now also available online, as part of the Arduino Cloud platform. You will find it here: [Arduino Cloud - Arduino Lab for MicroPython]().***
15
+
***Note that the Arduino Lab for MicroPython is now also available online, as part of the Arduino Cloud platform. You will find it here: [Arduino Cloud - Arduino Lab for MicroPython](/micropython/environment/code-editor).***
16
16
17
17
## Arduino Labs for MicroPython
18
18
@@ -47,14 +47,14 @@ Managing files in the Arduino Lab for MicroPython is straightforward and allows
47
47
48
48

49
49
50
-
***For a detailed tutorial on using the file system, please refer to the [File System Tutorial]().***
50
+
***For a detailed tutorial on using the file system, please refer to the [File System Tutorial](/micropython/environment/file-system).***
51
51
52
52
### REPL
53
53
54
54
The REPL can be found by expanding the terminal. Here you can interact with the terminal. The buttons allow for basic features like copy and pasting as the shortcuts like ```CTRL+C will´´´ not work on this window.
55
55
56
56

57
-
***For a detailed tutorial on using the file system, please refer to the [File System Tutorial]().***
57
+
***For a detailed tutorial on using the file system, please refer to the [File System Tutorial](/micropython/environment/file-system).***
Copy file name to clipboardExpand all lines: content/micropython/02.environment/03.modules/modules.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ In this example, `time.sleep()` introduces a delay. Built-in modules like `time`
38
38
39
39
## External Modules
40
40
41
-
Some modules aren’t included with the default MicroPython installation and need to be installed separately. External modules, often provided by the community or specific hardware packages, extend MicroPython’s functionality. For example, the [Modulino library]() is an external module that provides tools for working with Arduino Modulinos.
41
+
Some modules aren’t included with the default MicroPython installation and need to be installed separately. External modules, often provided by the community or specific hardware packages, extend MicroPython’s functionality. For example, the [Modulino library](https://github.com/arduino/arduino-modulino-mpy) is an external module that provides tools for working with Arduino Modulinos.
42
42
43
43
To demonstrate how to use external modules, we’ll go through the steps to install the Modulino package on an Arduino board.
44
44
@@ -51,7 +51,7 @@ Before we can install external modules, we need to have MicroPython running on o
51
51
- Press the "Refresh" button if the board does not appear.
52
52
- Click "**Install MicroPython**" and wait for the installation to complete.
53
53
54
-
***For more details, visit the [MicroPython installation guide]()***
54
+
***For more details, visit the [MicroPython installation guide](/micropython/first-steps/install-guide)***
Copy file name to clipboardExpand all lines: content/micropython/03.language/01.reference/reference.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1336,7 +1336,7 @@ print("Hello World!")
1336
1336
1337
1337
`while True:`
1338
1338
1339
-
A loop is not required in a MicroPython script, but is required in order to run a script continuously on the board. To have a loop in a program, we need to use a [while loop]().
1339
+
A loop is not required in a MicroPython script, but is required in order to run a script continuously on the board. To have a loop in a program, we need to use a [while loop](/micropython/basics/loops/#while-loops).
Copy file name to clipboardExpand all lines: content/micropython/04.board-examples/giga-r1-wifi/giga-r1-wifi.md
+7-25
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
---
2
2
title: GIGA R1 WiFi
3
3
description: Learn how to use specific features on the GIGA R1 WiFi using MicroPython
4
+
author: Pedro Sousa Lima
4
5
---
6
+
5
7

6
8
7
9
In this guide, you will find information specific to the [GIGA R1 WiFi board](https://store.arduino.cc/products/giga-r1-wifi), such as supported serial protocols, built-in peripherals, and how to access the wireless features.
@@ -26,16 +28,6 @@ The GIGA R1 WiFi has several board-specific features that we can access through
26
28
-**Wireless Connectivity**: Supports both **Wi-Fi®** and **Bluetooth®** using the integrated Murata 1DX module.
27
29
-**High-speed Connectivity**: Includes a USB-C® connector, high-speed UART, and CAN bus support.
28
30
29
-
30
-
## Wireless Connectivity
31
-
32
-
The GIGA R1 WiFi features a Murata 1DX module that provides both **Wi-Fi®** and **Bluetooth®** connectivity. To find examples, please visit the links below:
33
-
34
-
-**[MicroPython - Bluetooth® documentation]()**
35
-
-**[MicroPython - Wi-Fi® documentation]()**
36
-
37
-
38
-
39
31
## Dual-Core Programming
40
32
41
33
The GIGA R1 WiFi supports dual-core programming, where the Cortex-M7 and Cortex-M4 cores can execute separate tasks simultaneously. Below is an example of how to run MicroPython on one core while offloading specific tasks to the other:
@@ -60,9 +52,7 @@ def main_task():
60
52
main_task()
61
53
```
62
54
63
-
> **Note**: Dual-core programming is an advanced topic and requires proper synchronization to avoid resource conflicts.
64
-
65
-
55
+
**Note**: Dual-core programming is an advanced topic and requires proper synchronization to avoid resource conflicts.
The **msgpackrpc** library provides the same functionality as the Arduino RPC library for MicroPython, allowing seamless communication between the two cores (M7 and M4) on the GIGA R1 WiFi. This library enables binding of local functions or objects, starting the M4 core, and invoking remote calls from Python scripts.
142
132
143
-
####Key Features:
133
+
### Key Features:
144
134
-**Dual-Core Support**: Execute tasks on the M4 core while the main MicroPython code runs on the M7 core.
145
135
-**Ease of Use**: The library is built-in and enabled by default in compatible Arduino boards, starting with MicroPython release v1.23.
146
136
-**No External Dependencies**: The library is included in the MicroPython firmware and does not require additional installations.
147
137
148
138
149
-
#### Restrictions:
139
+
### Restrictions:
140
+
150
141
While powerful, the **msgpackrpc** library has some limitations:
151
142
1. Arduino sketches can only run on the **M4 core**.
152
143
2.**SDRAM-based firmware** is not supported.
153
144
3.**Flash-based firmware** must use a 1.5MB M7 + 0.5MB M4 flash partitioning scheme.
154
145
155
146
156
-
####Example
147
+
### Example
157
148
158
149
Here’s how to bind a function on the M7 core and call it from the M4 core:
159
150
@@ -189,15 +180,6 @@ print(result) # Outputs: Hello from M7!
189
180
190
181
For a detailed explanation of the RPC library, including advanced use cases and configuration, visit the [RPC Library with MicroPython guide](https://docs.arduino.cc/tutorials/giga-r1-wifi/giga-dual-core/#using-the-rpc-library-with-micropython).
191
182
192
-
193
-
## Additional Features
194
-
195
-
The GIGA R1 WiFi includes other features that can be explored:
196
-
197
-
-**Analog Pins**: Use `ADC` to read analog values from sensors.
198
-
-**PWM**: Use `PWM` for pulse-width modulation to control motors or LEDs.
199
-
200
-
201
183
## Summary
202
184
203
185
The GIGA R1 WiFi is a robust microcontroller packed with advanced features for embedded programming with MicroPython. From dual-core programming to high-speed connectivity and wireless communication, this guide provides the essentials to get started with this powerful board.
Copy file name to clipboardExpand all lines: content/micropython/04.board-examples/nano-ble-sense/nano-ble-sense.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -6,18 +6,18 @@ author: Karl Söderby
6
6
7
7

8
8
9
-
In this guide, you will find information specific to the [Nano BLE Sense board](), such as supported serial protocols and built-in sensors that can be accessed.
9
+
In this guide, you will find information specific to the [Nano BLE Sense board](https://store.arduino.cc/products/nano-33-ble-sense-rev2), such as supported serial protocols and built-in sensors that can be accessed.
10
10
11
11
For installation instructions, please visit the link below.
0 commit comments