win-duino: a duino update for working with Arduino in node.js on Windows From the original duino-project (Unix) to use it with node on Windows OS! For "duino" see: https://github.com/ecto/duino
- upload arduino/duino/duino.ino sketch
- npm install win-duino
var board = new arduino.Board({
debug: true,
device: 'COM5',
baudrate: 9600
});
var arduino = require('win-duino');
var leonardo = new arduino.Board({
debug: true
,device: 'COM5'
});
leonardo.on('ready', function(){
led = new arduino.Led({board:this,pin: 13});
led.on();
}).on('end',function(){// When End Connection
led.off();
});
For detail documentation see duino: https://github.com/ecto/duino