laurenceHR / win-duino

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. upload arduino/duino/duino.ino sketch
  2. npm install win-duino

Windows COM Port selection

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

usage

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

documentation

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

About

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

License:MIT License


Languages

Language:JavaScript 77.4%Language:Arduino 22.6%