Socket
Socket
Sign inDemoInstall

chip-io

Package Overview
Dependencies
24
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## Version 2.0.1
* Correct typeof comparison for addressToBus map, fixes I2C read and write operations.
## Version 2.0.0

@@ -2,0 +6,0 @@

2

extra/pin-table-generator.js
var pins = require('../lib/pins');
console.log('| Johnny-Five Compatible Name | Number | Supported Modes | Requires root or sudo | Info |');
console.log('| --------------------------- | ------ | --------------- | --------------------- | ---- |');
console.log('| --------------------------- | :----: | --------------- | :-------------------: | ---- |');

@@ -6,0 +6,0 @@ for (var i = 0; i < pins.length; i++) {

@@ -201,3 +201,3 @@ var util = require('util');

var bus = typeof addressToBus[address] !== undefined ? addressToBus[address] : 2;
var bus = typeof(addressToBus[address]) !== 'undefined' ? addressToBus[address] : 2;
var i2c = new I2C(bus, address);

@@ -255,3 +255,3 @@

var bus = typeof addressToBus[address] !== undefined ? addressToBus[address] : 2;
var bus = typeof(addressToBus[address]) !== 'undefined' ? addressToBus[address] : 2;
var i2c = new I2C(bus, address);

@@ -258,0 +258,0 @@

{
"name": "chip-io",
"version": "2.0.0",
"version": "2.0.1",
"description": "Johnny-Five IO Plugin for the Next Thing Co. C.H.I.P.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -50,3 +50,3 @@ # chip-io

| Johnny-Five Compatible Name | Number | Supported Modes | Requires root or sudo | Info |
| --------------------------- | ------ | --------------- | --------------------- | ---- |
| --------------------------- | :----: | --------------- | :-------------------: | ---- |
| LCD-D2 | 17 | Input | ✓ | |

@@ -53,0 +53,0 @@ | PWM0 | 18 | Input, Output, PWM | ✓ | |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc