Examples
Cylon.js Intel Edison Sphero
Cylon.js 02
root@edison:~# nano cylonjs02.jsvar Cylon = require('cylon');
Cylon.robot({
connections: {
sphero: { adaptor: 'sphero', port: '/dev/rfcomm0' }
},
devices: {
sphero: { driver: 'sphero' }
},
work: function(my) {
every((1).second(), function() {
my.sphero.roll(60, Math.floor(Math.random() * 360));
});
}
}).start();Cylon.js 03
Last updated