Socket
Socket
Sign inDemoInstall

node-red-contrib-anolog-to-digital-converter-raspberry-pi

Package Overview
Dependencies
25
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.16 to 0.4.18

17

ads1x15.js

@@ -75,4 +75,4 @@

//Math.floor(Math.random() * (max - min + 1) + min);
var random_number_between_100_200 = Math.floor(Math.random() * (200 - 100 + 1) + 100);
await sleep(random_number_between_100_200);
var random_number_between_100_200 = Math.floor(Math.random() * (300 - 100 + 1) + 100);
await sleep(random_number_between_100_300);
adc_busy = globalContext.get("adc_is_busy_node_red_contrib_anolog_to_digital_converter_raspberry_pi");

@@ -86,3 +86,3 @@ }

//sleep 100ms to drop any extra requests made to the ads
await sleep(50);
await sleep(100);

@@ -101,3 +101,3 @@

i2c, // i2c interface
chip: ADS1x15.chips.IC_ADS1115, // chip model
chip: ADS1x15.chips[this.chip], // chip model
address: ADS1x15.address[this.i2c_address], // i2c address on the bus

@@ -118,3 +118,3 @@

{
return node.error('Failed to fetch value from ADC', err);
return node.error('Unable to connect to ADC and Failed to fetch value from Chipset:'+this.chip+" "+this.channel+" "+this.i2c_address, err);
}

@@ -148,3 +148,3 @@ else

{
return node.error('Failed to fetch value from ADC', err);
return node.error('Unable to connect to ADC and Failed to fetch value from Chipset:'+this.chip+" "+this.channel+" "+this.i2c_address, err);
}

@@ -172,7 +172,10 @@ else

});
await sleep(10);
//set adc_busy and is_que_full to false now that we are done with them
globalContext.set("adc_is_busy_node_red_contrib_anolog_to_digital_converter_raspberry_pi", false);
globalContext.set("node_red_contrib_anolog_to_digital_converter_raspberry_pi_"+this.chip+this.i2c_address+this.channel, false);
await sleep(100);
if (done) {
done();
}

@@ -179,0 +182,0 @@

{
"name": "node-red-contrib-anolog-to-digital-converter-raspberry-pi",
"version": "0.4.16",
"version": "0.4.18",
"description": "A node-red node providing access to a ADS1x15 I2C analog to digital converter using a raspberry pi",

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

@@ -27,3 +27,3 @@ node-red-contrib-anolog-to-digital-converter-raspberry-pi

* [Work](#work)
* [Contributor of Project](#contributor)
* [Contributor_of_Project](#Contributor_of_Project)

@@ -139,3 +139,3 @@ ---

## Contributor of Project
## Contributor_of_Project

@@ -173,2 +173,9 @@ Thanks to [Kevin Fitzgerald AKA kfitzgerald](https://github.com/kfitzgerald/raspi-kit-ads1x15#readme) for his work on raspi-kit-ads1x15. It made making this node for node-red possible.

<br>
<br>
<br>
version 0.4.18
<br>
Added more verbose statment for faild connection to ADC. To tell user on what chip, address and channel.
<br>
Fixed chip selction being stuck and unable to select ads1015. No longer stuck on ADS1115 mode.
<br>
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