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/03.micropython/01.basics/00. digital-io/digital-io.md
+6-10
Original file line number
Diff line number
Diff line change
@@ -62,11 +62,9 @@ In this guide, we will be using some additional electronic components:
62
62
63
63
1. Open the [Arduino Lab for MicroPython]() application.
64
64
2. Plug the Arduino board into the computer using a USB cable.
65
-
![Connect board to computer.]()
66
-
3. Press the connection button on the top left corner of the window.
67
-
![Connect the editor to the board.]()
68
-
4. The connected Arduino board should appear, and we can click it:
69
-
![Select board.]()
65
+

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
+

70
68
71
69
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
72
70
@@ -83,7 +81,7 @@ Connect an LED to the Arduino board, following the circuit diagram below:
83
81
- Connect the anode (+) of the LED to a digital output pin.
84
82
- Connect the cathode (-) of the LED through a resistor to `GND`.
85
83
86
-
![LED circuit.]()
84
+

87
85
88
86
***You can also use the built-in LED on your board, if you do not have an external LED.***
89
87
@@ -133,16 +131,14 @@ When a digital input pin is not connected to a definite HIGH or LOW voltage, it
133
131
134
132
These internal resistors are built into the microcontroller and can be enabled in your code, eliminating the need for external resistors.
135
133
136
-
![We can create a image here to explain that]()
137
-
138
134
### Example: Pull-Up Mode
139
135
140
136
In pull-up mode, the input pin is internally connected to a HIGH voltage level. When the input device (like a button) is activated and connects the pin to GND, the pin reads LOW (`0`).
141
137
142
138
- Connect one side of the button to **GND**.
143
139
- Connect the other side to a digital input pin.
144
140
145
-
![Pull-up mode circuit.]()
141
+

146
142
147
143
After completing the circuit diagram, copy the following code into your editor, and run the script.
148
144
@@ -181,7 +177,7 @@ In pull-down mode, the input pin is internally connected to GND. When the input
181
177
- Connect one side of the button to **3.3V** (or **5V**, depending on your board's logic level).
182
178
- Connect the other side to a digital input pin.
183
179
184
-
![Pull-down mode circuit.]()
180
+

185
181
186
182
After completing the circuit diagram, copy the following code into your editor, and run the script.
Copy file name to clipboardExpand all lines: content/micropython/03.micropython/01.basics/01. analog-io/analog-io.md
+6-8
Original file line number
Diff line number
Diff line change
@@ -54,11 +54,9 @@ In this guide, we will be using some additional electronic components:
54
54
55
55
1. Open the [Arduino Lab for MicroPython]() application.
56
56
2. Plug the Arduino board into the computer using a USB cable.
57
-
![Connect board to computer.]()
58
-
3. Press the connection button on the top left corner of the window.
59
-
![Connect the editor to the board.]()
60
-
4. The connected Arduino board should appear, and we can click it:
61
-
![Select board.]()
57
+

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
+

62
60
63
61
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
64
62
@@ -87,7 +85,7 @@ For this example, we will need the following external components:
87
85
88
86
Connect the photoresistor to the Arduino board, following the circuit diagram below:
After completing the circuit diagram, copy the following code into your editor, and run the script.
93
91
@@ -126,7 +124,7 @@ PWM is especially useful in applications where true analog output is not possibl
126
124
127
125
The main advantage of PWM is that it allows you to control analog-like behavior using digital pins, adding versatility to your projects while keeping power consumption efficient.
128
126
129
-
![How PWM works.]()
127
+

130
128
131
129
### Code Example: Dimming an LED with PWM
132
130
@@ -141,7 +139,7 @@ For this example, we will need the following external components:
141
139
142
140
Connect the LED to the Arduino board, following the circuit diagram below:
143
141
144
-
![Photoresistor circuit.]()
142
+

145
143
146
144
After completing the circuit diagram, copy the following code into your editor, and run the script.
Copy file name to clipboardExpand all lines: content/micropython/03.micropython/01.basics/02. loops/loops.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,9 @@ MicroPython is officially supported on several Arduino boards. Here’s a list o
43
43
44
44
1. Open the [Arduino Lab for MicroPython]() application.
45
45
2. Plug the Arduino board into the computer using a USB cable.
46
-
![Connect board to computer.]()
47
-
3. Press the connection button on the top left corner of the window.
48
-
![Connect the editor to the board.]()
49
-
4. The connected Arduino board should appear, and we can click it:
50
-
![Select board.]()
46
+

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
+

51
49
52
50
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
53
51
@@ -63,11 +61,8 @@ To better understand these loops, let’s imagine them as tasks at the supermark
63
61
64
62
-**for loops** - imagine walking down a supermarket aisle with a shopping list that specifies exactly how many items to pick up, one by one, in order. Once you’ve gathered all the items on your list, your task is complete. This is like a `for` loop iterating over a sequence, handling each specified item one at a time.
65
63
66
-
![How for loops work.]()
67
-
68
64
-**while loops** - imagine going to the supermarket to buy a certain product that’s on sale, as long as it stays in stock. You keep coming back, day after day, until the sale ends or the stock runs out. In a `while` loop, you keep “coming back” as long as a condition (like the sale continuing) remains true.
Copy file name to clipboardExpand all lines: content/micropython/03.micropython/01.basics/03.data-logger/data-logger.md
+3-5
Original file line number
Diff line number
Diff line change
@@ -45,11 +45,9 @@ MicroPython is officially supported on several Arduino boards. Here’s a list o
45
45
46
46
1. Open the [Arduino Lab for MicroPython]() application.
47
47
2. Plug the Arduino board into the computer using a USB cable.
48
-
![Connect board to computer.]()
49
-
3. Press the connection button on the top left corner of the window.
50
-
![Connect the editor to the board.]()
51
-
4. The connected Arduino board should appear, and we can click it:
52
-
![Select board.]()
48
+

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
+

53
51
54
52
***Need help installing MicroPython on your board? Visit the [MicroPython installation guide]().***
0 commit comments