Skip to content

Commit a4e92f4

Browse files
authored
Merge pull request #480 from arduino/Hannes7eicher/CircuitFixes
Fix circuit pins
2 parents 8aafd71 + 9f6e15a commit a4e92f4

22 files changed

+15
-13
lines changed

content/micropython-course/course/04.digital/03.digital.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ For the LED, we can do sort of the reverse: we can write a HIGH / LOW state to i
3030

3131
In this exercise, we will read a button, which we will need to connect to our Nano ESP32 board, following the circuit diagram below:
3232

33-
![Button Circuit.](assets/button.png)
33+
![Button Circuit.](assets/circuitButton.png)
3434

3535
Open the code editor, and copy paste the following script to the `main.py` file, then click on the **"Run"** button to run it.
3636

3737
```python
3838
from machine import Pin
3939
import time
4040

41-
button = Pin(5, Pin.IN, Pin.PULL_UP)
41+
button = Pin(9, Pin.IN, Pin.PULL_UP)
4242

4343
while True:
4444
print(button.value())
@@ -57,7 +57,7 @@ We have now successfully read the state of a button, one of the world's most com
5757

5858
In the next exercise, we will turn on an LED, which we will need to connect to our Nano ESP32 board, following the circuit diagram below:
5959

60-
![LED circuit.](assets/led.png)
60+
![LED circuit.](assets/circuitLED.png)
6161

6262
Open the code editor, and copy paste the following script to the `main.py` file, then click on the **"Run"** button to run it.
6363

-784 KB
Binary file not shown.
788 KB
Loading
789 KB
Loading
-787 KB
Binary file not shown.

content/micropython-course/course/05.analog/04.analog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ In the next exercise, we will add an LED to our circuit, which we will control w
7575

7676
Follow the circuit diagram below to add the LED to the circuit.
7777

78-
![LED + pot circuit](assets/potledcircuit.png)
78+
![LED + pot circuit](assets/circuitPotLed.png)
7979

8080
Open the code editor, and copy paste the following script to the `main.py` file, then click on the **Run"** button to run it.
8181

829 KB
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[LocalizedFileNames]
2+
circuitPotLed.png=@circuitPotLed,0
-828 KB
Binary file not shown.
26.2 KB
Loading

0 commit comments

Comments
 (0)