Skip to content

Instantly share code, notes, and snippets.

@karlwestin
Created July 6, 2011 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save karlwestin/1068565 to your computer and use it in GitHub Desktop.
Save karlwestin/1068565 to your computer and use it in GitHub Desktop.
My short node-js-firmata attempt
// On Arduino Uno 2.2
// Using Examples > Firmata > StandardFirmata_2_2_forUNO_0_3
var firmata = require("./firmata/lib/firmata");
var board = new firmata.Board("/dev/tty.usbmodem621");
board; // logs board object, board.pins is empty
board.digitalWrite(2, 1); // generates error can't write value to undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment