rpi-io 2.0.9 → 2.0.11

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.
Files changed (3) hide show
  1. package/README.md +8 -8
  2. package/history.md +8 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  - Input/Output - [libgpiod](https://libgpiod.readthedocs.io/en/stable/) v1.6.3 (*Bookworm*) and v2.2.1 (*Trixie*)
15
15
  - PWM - [sysfs](https://en.wikipedia.org/wiki/Sysfs) interface.
16
16
 
17
-
17
+
18
18
  ## Prerequisites
19
19
 
20
20
  ### libgpiod
@@ -40,9 +40,9 @@ sudo apt-get install -y build-essential python3
40
40
 
41
41
  ### Node.js
42
42
 
43
- Please make sure that you a recent version of Node.js (v23+) and NPM (v10+).
44
-
43
+ Please make sure that you a recent version of Node.js. Recommended tested versions are v23 and further as they support `require(esm)` by default.
45
44
 
45
+ Older versions starting at v20.19 where `require(esm)` has been backported should work as well, but they haven't been tested extensively.
46
46
 
47
47
  ## Installation
48
48
 
@@ -194,7 +194,7 @@ VCC (3.3V)
194
194
 
195
195
  ```javascript
196
196
  // Import rpi-io module
197
- import {Rio, ctrlC} from "rpi-io"
197
+ import {RIO, ctrlC} from "rpi-io"
198
198
 
199
199
  // Define instance for IN operation on some GPIO e.g. 18
200
200
  const btn = new RIO(18, "input", {bias: "pull-down"})
@@ -435,7 +435,7 @@ To write some value to "output" instance.
435
435
 
436
436
  ```javascript
437
437
  import {RIO} from "rpi-io"
438
- const myOutput = new Rio(17, "output")
438
+ const myOutput = new RIO(17, "output")
439
439
  myOuput.write(1)
440
440
  ```
441
441
 
@@ -453,7 +453,7 @@ To read value from "input" instance.
453
453
 
454
454
  ```javascript
455
455
  import {RIO} from "rpi-io"
456
- const myInput = new Rio(18, "input")
456
+ const myInput = new RIO(18, "input")
457
457
  const result = myInput.read()
458
458
  ```
459
459
 
@@ -471,7 +471,7 @@ To start event monitoring of "input" instance.
471
471
 
472
472
  ```javascript
473
473
  import {RIO} from "rpi-io"
474
- const myButton = new Rio(18, "input")
474
+ const myButton = new RIO(18, "input")
475
475
  const callback = edge => {
476
476
  console.log("edge:", edge)
477
477
  }
@@ -494,7 +494,7 @@ To stop event monitoring of "input" instance.
494
494
 
495
495
  ```javascript
496
496
  import {RIO} from "rpi-io"
497
- const myButton = new Rio(18, "input")
497
+ const myButton = new RIO(18, "input")
498
498
  const callback =
499
499
  myButton.monitoringStart(edge => {console.log("edge:", edge)})
500
500
  // Stop monitoring after 10s
package/history.md CHANGED
@@ -1,4 +1,11 @@
1
- 2.0.9 - Feb 03, 2029
1
+ 2.0.11 - Feb 13, 2026
2
+ ===================
3
+ * Minor updates in `README.md`:
4
+ * Fixes in code examples, where imported class is *RIO*, not *Rio*.
5
+ * Details about Node.js pre-requisites.
6
+
7
+
8
+ 2.0.9 - Feb 03, 2026
2
9
  ===================
3
10
  * `package.json`: node-gyp version update to fix *tar* vulnerabilities
4
11
  * `README.md`: Explanations for *tar* warnings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rpi-io",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "Nodejs module to control Raspberry Pi GPIO",
5
5
  "keywords": [
6
6
  "raspberry",