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
change only the ./lib/board.js
var board = new arduino.Board({
debug: true,
device: 'COM22',
baudrate: 115200
});
var arduino = require('../');
var board = new arduino.Board({
debug: true,
device: 'COM22',
baudrate: 115200
});
var led = new arduino.Led({
board: board,
pin: 2
});
board.on('ready', function(){
led.blink();
});
;
For detail documentation see duino: https://github.com/ecto/duino