Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-i2c

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-i2c - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

10

i2c/26-i2c.js

@@ -8,3 +8,3 @@ module.exports = function(RED) {

RED.nodes.createNode(this, n);
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno);
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno));
var node = this;

@@ -37,3 +37,3 @@

RED.nodes.createNode(this, n);
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno);
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno));
this.address = n.address;

@@ -116,3 +116,3 @@ this.command = n.command;

RED.nodes.createNode(this, n);
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno);
this.busno = isNaN(parseInt(n.busno) ? 1 : parseInt(n.busno));
this.address = parseInt(n.address);

@@ -124,7 +124,7 @@ this.command = parseInt(n.command);

var node = this;
node.port = I2C.openSync( node.busno );
node.on("input", function(msg) {
var myPayload;
var address = node.address;
var address = node.address;
if (isNaN(address)) address = msg.address;

@@ -131,0 +131,0 @@ var command = node.command;

{
"name": "node-red-contrib-i2c",
"version": "0.7.3",
"version": "0.7.4",
"description": "A Node-RED node to talk to the Raspiberry PI's I2C port",

@@ -5,0 +5,0 @@ "dependencies": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc