rpi-io 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -161,13 +161,13 @@ import {Rio} from "rpi-io";
|
|
|
161
161
|
const myOutput = new Rio(17, 'out');
|
|
162
162
|
```
|
|
163
163
|
##### Parameters
|
|
164
|
-
- **gpio** *{Number}* Must be one of the GPIO number as defined in [pinout.xyz](pinout.xyz).
|
|
164
|
+
- **gpio** *{Number}* Must be one of the GPIO number as defined in [pinout.xyz](https://pinout.xyz).
|
|
165
165
|
- **type** *{String}* Must be one of the following values: 'in', 'out', 'pwm'.
|
|
166
166
|
|
|
167
167
|
##### Detected errors
|
|
168
168
|
- Operating system version is not supported
|
|
169
169
|
- *libgpiod* version is not supported
|
|
170
|
-
- **gpio** is not defined as GPIO in [pinout.xyz](pinout.xyz).
|
|
170
|
+
- **gpio** is not defined as GPIO in [pinout.xyz](https://pinout.xyz).
|
|
171
171
|
- **gpio** is already used by another instance.
|
|
172
172
|
- **type** value is not recognized.
|
|
173
173
|
- **type**='pwm' and **gpio** is not properly configured.
|
|
@@ -416,23 +416,14 @@ Rio.isSystemSupported() // See console below
|
|
|
416
416
|
```
|
|
417
417
|
|
|
418
418
|
|
|
419
|
-
|
|
420
|
-
## Additional information
|
|
421
|
-
|
|
422
|
-
### Benchmark
|
|
419
|
+
## Benchmark
|
|
423
420
|
|
|
424
421
|
The following table summarizes GPIO *set* average times with rpi-io v1.1.0 and various hardwares and OS.
|
|
425
422
|
|
|
426
|
-
| | RPi 5B | RPi 4B | RPi Zero2
|
|
427
|
-
| -------- | ------- | ---------- |
|
|
428
|
-
| Bookworm | 1.37 ms | 4.56 ms | 9.07 ms
|
|
429
|
-
| Trixie | 3.82 ms | not tested | not tested
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
### Keywords
|
|
434
|
-
|
|
435
|
-
**raspberry pi rpi gpio pwm nodejs esm**
|
|
423
|
+
| | RPi 5B | RPi 4B | RPi Zero2 |
|
|
424
|
+
| -------- | ------- | ---------- | ---------- |
|
|
425
|
+
| Bookworm | 1.37 ms | 4.56 ms | 9.07 ms |
|
|
426
|
+
| Trixie | 3.82 ms | not tested | not tested |
|
|
436
427
|
|
|
437
428
|
---
|
|
438
429
|
|