Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Women Who Code - NodeBots

Raquel Vélez
December 12, 2013

Women Who Code - NodeBots

A beginner's look at nodebots!

Raquel Vélez

December 12, 2013
Tweet

More Decks by Raquel Vélez

Other Decks in Technology

Transcript

  1. You will need: node.js && npm an Arduino UNO an

    LED, a 10kΩ resistor, a button, jumper wires a breadboard
  2. var five = require("johnny-five"); five.Board().on("ready", function() { // "strobe" an

    led in 1000ms on-off phases five.Led(13).strobe(1000); });
  3. var five = require("johnny-five"), button, led; five.Board().on("ready", function() { button

    = new five.Button(8); led = new five.Led(13); button.on("down", function() { led.on(); }); button.on("up", function() { led.off(); }); });