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
{{ message }}
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: board/gpio.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,10 @@ Configures a GPIO pin using data provided by the `options` argument, that may co
27
27
<aname="gpiooptions"></a>
28
28
*`name` for pin name, either a number or string, by default `undefined`
29
29
*`mapping` for either `"board"` or `"os"` pin mapping, by default `"os"`
30
-
*`mode` with valid values `"input"` or `"output"`, by default `"input"`
30
+
*`mode` with valid values `"in"` or `"out"`, by default `"out"`
31
31
*`activeLow`, by default `false`
32
-
*`edge`, by default `"any"`
33
-
*`state`, by default `undefined`.
32
+
*`edge`, with valid values: `"rising"`, `"falling"`, `"any"`, `"none"`, by default `"none"`
33
+
*`state`, by default `undefined`, supported values: `"pull-up"`, `"pull-down"`, `"high-impedance"`.
34
34
35
35
The method runs the following steps:
36
36
- If `options` is a number or string, let `init` be a [GPIOOptions](#gpiooptions) object, let `init.name` be `options` and let the other [GPIOOptions](#gpiooptions) properties take the default values.
@@ -115,14 +115,14 @@ try {
115
115
var gpio =require("gpio");
116
116
117
117
var gpio3 =gpio.open(3); // GPIO input pin with default configuration.
0 commit comments