Skip to content

Instantly share code, notes, and snippets.

@somewhatabstract
Created December 29, 2014 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somewhatabstract/a272c06eba306ae87d2a to your computer and use it in GitHub Desktop.
Save somewhatabstract/a272c06eba306ae87d2a to your computer and use it in GitHub Desktop.
Reflectance array test
var five = require("johnny-five"),
board = new five.Board();
board.on("ready", function() {
var eyes = new five.IR.Reflect.Array({
emitter: 13,
pins: ["A0", "A1", "A2", "A3", "A4", "A5"]
});
eyes.on('line', function(err, lineValue) {
console.log( "Line Position: ", lineValue);
});
eyes.enable();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment