You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
}).start();
` and it works.
button and led both call for digital interface, the led blink can work, why button can't?
In order to let the terminal show "button pushed" when the button is pushed, how to write the code in the work part? I don't know how to use the function code to implement this function. Could you please help?
Looking forward to your reply! Thanks so much!
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.
The text was updated successfully, but these errors were encountered: