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/02.environment/01.code-editor/code-editor.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,11 @@ As we get familiar with the editor, remember that MicroPython has a few syntax r
28
28
29
29
The Arduino Lab for MicroPython editor provides several essential tools to make coding intuitive and efficient:
30
30
31
-
1.**Connect/Disconnect Board**: Use this button to connect or disconnect your MicroPython-compatible board. This allows the code editor to communicate with your board for running and testing code.
32
-
2.**Run/Stop Script**: Click this button to run or stop your script. The output will be displayed in the REPL, providing immediate feedback or error messages.
33
-
3.**File Management**: This option lets you manage files on your MicroPython board. You can upload, download, and organize your scripts.
34
-
4.**Edit Script**: The main area of the editor where you write and modify your MicroPython code. It provides features like syntax highlighting to enhance readability.
35
-
5.**Expand Terminal**: Use this button to expand or collapse the terminal section, which displays the REPL output, helping you debug and interact with your code in real time.
31
+
1.**Connect/Disconnect Board**: Use this button to connect or disconnect your MicroPython-compatible board. This allows the code editor to communicate with your board for running and testing code.
32
+
2.**Run/Stop Script**: Click this button to run or stop your script. The output will be displayed in the REPL, providing immediate feedback or error messages.
33
+
3.**File Management**: This option lets you manage files on your MicroPython board. You can upload, download, and organize your scripts.
34
+
4.**Edit Script**: The main area of the editor where you write and modify your MicroPython code. It provides features like syntax highlighting to enhance readability.
35
+
5.**Expand Terminal**: Use this button to expand or collapse the terminal section, which displays the REPL output, helping you debug and interact with your code in real time.
36
36
37
37

38
38
@@ -51,10 +51,10 @@ Managing files in the Arduino Lab for MicroPython is straightforward and allows
51
51
52
52
### REPL
53
53
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.
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](/micropython/environment/file-system).***
57
+
***For a detailed tutorial on using the REPL, please refer to the [REPL Tutorial](/micropython/environment/repl).***
Copy file name to clipboardExpand all lines: content/micropython/02.environment/04.runtime/runtime.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -32,12 +32,13 @@ MicroPython's runtime environment consists of several key components:
32
32
1.**REPL (Read-Eval-Print Loop)**: One of the standout features of MicroPython's runtime is the REPL. The REPL is an interactive shell where we can type and execute Python code line by line, get immediate feedback, and test ideas quickly. It’s especially useful for debugging and learning how the hardware responds to different commands.
33
33
34
34
2.**Boot and Main Scripts**: When the microcontroller starts up, the MicroPython runtime automatically looks for two scripts:
35
+
35
36
-**`boot.py`**: This script is executed first and is typically used for system configuration, such as setting up Wi-Fi or initializing hardware settings.
36
37
-**`main.py`**: After `boot.py` runs, `main.py` is executed. This is where we typically put our main application logic.
37
38
38
39
3.**Concurrency with `uasyncio`**: MicroPython provides support for asynchronous programming using the `uasyncio` module. This allows us to handle multiple tasks concurrently, such as reading a sensor while controlling an LED, without blocking the main program.
39
40
40
-
### Micro vs Python
41
+
### MicroPython vs Python
41
42
42
43
While MicroPython aims to be as compatible as possible with standard Python, there are some important differences due to the limited resources available on microcontrollers:
0 commit comments