How to delay so that LED stays on a bit longer?
Insert a delay of 500ms?

function cycle() {
    for ( var i = 0; i &lt; bytes.length; i++ ) {
        console.log(bytes[i]);
        sr.send(bits[i]);
        delay(500);
    }
  }