/win-duino

win-duino: A "duino" update for working with Arduino in node.js on Windows

Primary LanguageJavaScriptMIT LicenseMIT

win-duino

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

install

change only the ./lib/board.js

Windows COM Port selection

var board = new arduino.Board({
  debug: true,
  device: 'COM22',
  baudrate: 115200
});

usage

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();
});
;

documentation

For detail documentation see duino: https://github.com/ecto/duino