Adding the timeout to pulseIn() does most what newPing does. It's that long blocking that appears to be the real problem OP has (lights not flashing fast enough).
Adding the timeout to pulseIn() does most what newPing does. It's that long blocking that appears to be the real problem OP has (lights not flashing fast enough).