Created
October 15, 2014 19:03
-
-
Save andrest/db4beb02746b166426df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var phidget = require('phidget'); | |
var bridge = new phidget.bridge(); | |
var scale = bridge.attach(function (err) { | |
console.log('\n0 ----------------\n'); | |
console.log(phidget.getValue(350222, function(data){ console.log(data) })); | |
console.log('\n1 ----------------\n'); | |
console.log(phidget.getValue(4, function(data){ console.log(data) })); | |
console.log('\n2 ----------------\n'); | |
console.log(phidget.getValue(-1, function(data){ console.log(data) })); | |
console.log('\n3 ----------------\n'); | |
console.log(phidget.getValue(0, function(data){ console.log(data) })); | |
}); | |
console.log('\n4 ----------------\n'); | |
console.log(phidget); | |
console.log('\n5 ----------------\n'); | |
console.log(scale); | |
console.log('\n6 ----------------\n'); | |
console.log(phidget.getValue(scale, function(data){ console.log(data) })); | |
console.log('\n7 ----------------\n'); | |
console.log(phidget.getValue(scale, function(data){ console.log(data) })); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment