var five = require("../lib/johnny-five.js"),
    board, joystick, led;

board = new five.Board({
  debug: true
});

board.on("ready", function() {

  // Create a new `joystick` hardware instance.
  // This example allows the joystick module to
  // create a completely default instance
  joystick = new five.Joystick({
    // Joystick pins are an array of pins
    // Pin orders:
    //   [ up, down, left, right ]
    //   [ ud, lr ]
    pins: [ "A0", "A1" ]
  });

  led = new five.Led();


  // Inject the `joystick` hardware into
  // the Repl instance's context;
  // allows direct command line access
  board.repl.inject({
    joystick: joystick
  });

  // Joystick Event API

  joystick.on("axismove", function( err, timestamp ) {

    // Axis data is available on:
    // this.axis
    // { x: 0-1024, y: 0-1024 }
    console.log( "input", this.axis );

    led.strobe();
  });
});


// Schematic
// https://1965269182786388413-a-1802744773732722657-s-sites.googlegroups.com/site/parallaxinretailstores/home/2-axis-joystick/Joystick-6.png?attachauth=ANoY7cpvldS6bVVIJbeQnCa9w-UoVst9yaVSMQ96K_rlO-DLD0IJaAUbj1y148obuy1sIEiXxkDS2vSMek4zeq4M6bleDHfmCh35zGKxxFDllTVZuey57vhw-LssfaRxiU090BuAutY8081PD-65bZWpRy5gZpId77nuPEGbOQFeVEJYK41ltByfpVYUe9PO3rQwbf3XK_ltPHZv8fyXH43UMu5HJE04PS0QDHPyoICTvgzHO-DIbfHY32Znf9SsAMm5nLtag3h1&attredirects=0

// Further Reading
// http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/27800-2-AxisJoystick-v1.2.pdf

@@ -61,15 +61,10 @@
 tick
-, led
 ;%0A
+
 %0Aboa
@@ -459,34 +459,8 @@
 );%0A%0A
-  led = new five.Led();%0A%0A%0A
   //
@@ -761,16 +761,25 @@
     // %7B
+%0A    //  
  x: 0-10
@@ -786,19 +786,138 @@
 24, 
-y: 0-1024 %7D
+( 0 %3C-- L/R --%3E 1024 )%0A    //   y: 0-1024  ( 0 %3C-- D/U --%3E 1024 )%0A    // %7D%0A    //%0A    // Center is ~500-510 (should be 512)%0A    //
 %0A   
@@ -955,27 +955,8 @@
 s );
-%0A%0A    led.strobe();
 %0A  %7D
@@ -977,16 +977,16 @@
 hematic%0A
-
 // https
@@ -1413,16 +1413,118 @@
 irects=0
+%0A// http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/27800-Axis%2520JoyStick_B%2520Schematic.pdf
 %0A%0A// Fur

Remove led instance