This repository was archived by the owner on Aug 5, 2022. It is now read-only.
File tree 5 files changed +6
-6
lines changed
5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ On certain boards, analog pins can also be used as GPIO.
11
11
### The GPIO API object
12
12
When requiring ` "gpio" ` , the following steps are run:
13
13
- If there is no permission for using the functionality, throw ` SecurityError ` .
14
- - If the AIO functionality is not supported on the board, throw ` "NotSupportedError" ` .
14
+ - If the GPIO functionality is not supported on the board, throw ` "NotSupportedError" ` .
15
15
- Return an object that implements the following methods.
16
16
17
17
| Method | Description |
@@ -33,7 +33,7 @@ The following dictionary is used for initializing GPIO pins and ports.
33
33
| ` edge ` | string | yes | ` "any" ` | Interrupt generation mode |
34
34
| ` state ` | string | yes | ` undefined ` | "pulldown", "pullup" |
35
35
36
- The ` pin ` property is either a number or string, with values defined by the OS or board documentation. The default valus is ` undefined ` .
36
+ The ` pin ` property is either a number or string, with values defined by the OS or board documentation. The default value is ` undefined ` .
37
37
38
38
The ` mapping ` property represents the pin namespace, either ` "system" ` or ` "board" ` , by default ` "system" ` .
39
39
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ This API uses a [`Buffer`](../README.md/#buffer) object for both read and write.
15
15
### The I2C API object
16
16
When requiring ` "i2c" ` , the following steps are run:
17
17
- If there is no permission for using the functionality, throw ` SecurityError ` .
18
- - If the AIO functionality is not supported on the board, throw ` "NotSupportedError" ` .
18
+ - If the I2C functionality is not supported on the board, throw ` "NotSupportedError" ` .
19
19
- Return an object that implements the following method.
20
20
21
21
| Method | Description |
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ The term "channel" is used as the numeric index of a PWM pin relative to the PWM
12
12
### The PWM API object
13
13
When requiring ` "pwm" ` , the following steps are run:
14
14
- If there is no permission for using the functionality, throw ` SecurityError ` .
15
- - If the AIO functionality is not supported on the board, throw ` "NotSupportedError" ` .
15
+ - If the PWM functionality is not supported on the board, throw ` "NotSupportedError" ` .
16
16
- Return an object that implements the following method.
17
17
18
18
| Method | Description |
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ This API uses a [`Buffer`](../README.md/#buffer) object for both read and write
15
15
### The SPI API object
16
16
When requiring ` "spi" ` , the following steps are run:
17
17
- If there is no permission for using the functionality, throw ` SecurityError ` .
18
- - If the AIO functionality is not supported on the board, throw ` "NotSupportedError" ` .
18
+ - If the SPI functionality is not supported on the board, throw ` "NotSupportedError" ` .
19
19
- Return an object that implements the following method.
20
20
21
21
| Method | Description |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ This API uses a [`Buffer`](../README.md/#buffer) object for both read and write.
8
8
### The UART API object
9
9
When requiring ` "uart" ` , the following steps are run:
10
10
- If there is no permission for using the functionality, throw ` SecurityError ` .
11
- - If the AIO functionality is not supported on the board, throw ` "NotSupportedError" ` .
11
+ - If the UART functionality is not supported on the board, throw ` "NotSupportedError" ` .
12
12
- Return an object that implements the following method.
13
13
14
14
| Method | Description |
You can’t perform that action at this time.
0 commit comments