this is my button.js:
var Cylon = require('cylon');
Cylon.robot({
connections: {
pcduino: { adaptor: 'pcduino }
},
devices: {
button: { driver: 'button', pin: 2 }
},
work: function(my) {
my.button.on('push', function() {
console.log("Button pushed!");
});
}
}).start();
$node button.js
TypeError:Cylon.IO.Utils.every is not a function
Why? Is the pin.js file wrong?Looking forward to your reply.
this is my button.js:
var Cylon = require('cylon');
Cylon.robot({
connections: {
pcduino: { adaptor: 'pcduino }
},
devices: {
button: { driver: 'button', pin: 2 }
},
work: function(my) {
my.button.on('push', function() {
console.log("Button pushed!");
});
}
}).start();
$node button.js
TypeError:Cylon.IO.Utils.every is not a function
Why? Is the pin.js file wrong?Looking forward to your reply.