Code for the runway project.  The code below is a new version and may be different from the version presented in the comic book.  Play with the various number (pin numbers, and timings) to see the impact.

var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
  var ledPins = [2,3,5,6,7,9,10,11];
  var leds = new five.Leds(ledPins);
  var t = 100;
  
  function chase() {
    leds.off();
    leds.each(function(led,index) {
      var l = index;
      t += 50;

      setTimeout(function() {
        led.on();
      },t,l,led);

      setTimeout(function() {
        led.off();
      },t+200,l,led);
    });
  };
  setInterval(chase,3000);
});