ds1621

0.1.3 • Public • Published

node-ds1621

NPM version Downloads Donate

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

Readme

Keywords

Package Sidebar

Install

npm i ds1621

Weekly Downloads

0

Version

0.1.3

License

ISC

Unpacked Size

4.61 kB

Total Files

5

Last publish

Collaborators

  • gyengus