2.1.28, initiation update to PXT v5.28.24 (#54)
This commit is contained in:
committed by
Peli de Halleux
parent
38a964516e
commit
5c114a0c57
@@ -14,12 +14,14 @@ button press.
|
||||
pins.setPull(DigitalPin.P9, PinPullMode.PullDown);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
The pull-up and -down resistors are about 13kOhm.
|
||||
|
||||
## Parameters
|
||||
|
||||
* ``name``: The @boardname@ hardware pin to configure (``P0``-``P20``)
|
||||
* ``pull``: The pull to which to set the pin (**down**, **up**, or **none**)
|
||||
|
||||
### Example
|
||||
## Example
|
||||
|
||||
The following example sets the pull of pin ``P0`` to **up** (high).
|
||||
|
||||
@@ -27,6 +29,6 @@ The following example sets the pull of pin ``P0`` to **up** (high).
|
||||
pins.setPull(DigitalPin.P0, PinPullMode.PullUp);
|
||||
```
|
||||
|
||||
### See also
|
||||
## See also
|
||||
|
||||
[@boardname@ | mbed](https://developer.mbed.org/platforms/Microbit/)
|
||||
|
||||
Reference in New Issue
Block a user