ds1621
v0.1.3
Published
Node module for communication with temperature sensor DS1621
Downloads
5
Readme
node-ds1621
Node.js module for DS1621 temperature sensor
Tested on Raspberry Pi B+
Installation
$ npm install ds1621
Usage
var ds1621 = require('ds1621.js'),
sensor = new ds1621({device:'/dev/i2c-1'});
sensor.getHighPrecTemp(function(temperature) {
console.log('Temperature: ' + temperature + '°C');
process.exit();
});
Run, the example:
$ sudo node example.js
Please note: You must run this in root account.
Testing
Install mocha, then type
$ sudo mocha
Donations
- PayPal: https://paypal.me/gyengus
- Bitcoin: 1QJzLBK9uQP4RthmKJRQwy3v5sd4XS4S7P
- Ethereum: 0x2bD68120A56acBf6Dbd11da2060228b8912C1e3C