rpi-io 2.0.9 → 2.0.10

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 +5 -5
  2. package/history.md +5 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -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,8 @@
1
- 2.0.9 - Feb 03, 2029
1
+ 2.0.10 - Feb 11, 2026
2
+ ===================
3
+ * `README.md`: In code examples, imported class is *RIO*, not *Rio*.
4
+
5
+ 2.0.9 - Feb 03, 2026
2
6
  ===================
3
7
  * `package.json`: node-gyp version update to fix *tar* vulnerabilities
4
8
  * `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.10",
4
4
  "description": "Nodejs module to control Raspberry Pi GPIO",
5
5
  "keywords": [
6
6
  "raspberry",