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/01.basics/08.reference/reference.md
+65-29Lines changed: 65 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ For example:
15
15
-`digitalWrite(pin, HIGH)` (Arduino/C++)
16
16
-`pin.value(1)` (MicroPython)
17
17
18
-
The entries are named exactly the same as in the language reference, with the MicroPython syntax, description and code example provided for each entry.
18
+
The entries are named exactly the same as in the language reference, with the MicroPython syntax, description and code example provided for each entry. It is however important to understand that any given board may not be fully compatible with this reference, as some implementations vary between board/architecture. For example, using PWM on a STM32 board will differ from using it on an ESP32 board.
19
19
20
20
***Note that several entries in the original [Language Reference](https://www.arduino.cc/reference/en/) are directly taken from the C++ reference. In the same fashion, many functions located in this reference are taken from the Python reference, and are not MicroPython specific.***
21
21
@@ -30,7 +30,7 @@ To access digital GPIOs using MicroPython, we use the `Pin` module. To define a
30
30
-`input_pullup = Pin(pin, Pin.IN, Pin.PULL_UP` (define as input pull up)
31
31
-`input_pulldown = Pin(pin, Pin.IN, Pin.PULL_DOWN` (define as input pull down)
32
32
33
-
Parameters:
33
+
**Parameters:**
34
34
-`pin` - pin we want to set
35
35
-`type` - define as input or output
36
36
-`pullmode` - define as pull up or pull down mode (optional).
0 commit comments