Advertisement
gyengus

Example use of DS1621 Node.js module

Jan 26th, 2015
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ds1621 = require('ds1621.js'),
  2.          sensor = new ds1621({device:'/dev/i2c-1'});
  3.  
  4. sensor.getHighPrecTemp(function(temperature) {
  5.     console.log('Temperature: ' + temperature + '°C');
  6.     process.exit();
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement