Skip to content

Commit 7664a3b

Browse files
authored
Merge pull request #1346 from arduino/karlsoderby/mp-course-pinmap-reference
[MicroPython] Add reference to pin map.
2 parents 78192ef + 55d345f commit 7664a3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ while True:
5353
print("BUTTON PRESSED!")
5454
```
5555

56+
***Please note that the pin number reflects the GPIO on the ESP32-S3, not the Nano board. In the circuit, we are connecting the button to pin `D6`, but in the code, we use pin `9`. You can read more about this and see the full pin map [here](/micropython-course/course/introduction-python#nano-esp32--micropython-pinout).***
57+
5658
Then, click on the **Run"** button to run the script. Now, if we click the button, we should see a message in the terminal: **"BUTTON PRESSED!"**.
5759

5860
![Button pressed.](assets/button.gif).

0 commit comments

Comments
 (0)