examples/servo.js
function servoLoop() {
    timer = setTimeout(servoLoop, 500);

    pwm.setPulseLength(steeringChannel, pulseLengths[nextPulse]);
    nextPulse = (nextPulse + 1) % pulseLengths.length;
}
function servoLoop() {
    timer = setTimeout(servoLoop, 500);

    pwm.setPulseLength(steeringChannel, pulseLengths[nextPulse]);
    nextPulse = (nextPulse + 1) % pulseLengths.length;
}
function servoLoop ( ) { timer = setTimeout ( servoLoop , 500 ) ; pwm . setPulseLength ( steeringChannel , pulseLengths [ nextPulse ] ) ; nextPulse = ( nextPulse + 1 ) % pulseLengths . length ; }
loop to cycle through pulse lengths
loop to cycle through pulse lengths