Pin interrupt question

Issue #65 resolved
erdemozor created an issue

Hello there Tim,

I just came across your New Ping library while trying to use My ultrasonic sensor in a non blocking way.

I am working on a project on the Arduino pro mini and already used the pin change interrupt on the available pins using software serial. My question is, does this library use pin change interrupts to detect pin change? If not I think I can just connect the ultrasonic sensor to the same port as the software serial pins and everything should work fine right (I used up the other pins already)?

Thanks.

Comments (2)

  1. Tim Eckel repo owner

    When using NewPing in a non-blocking way, it uses polling instead of change interrupts for compatibility reasons.

  2. Log in to comment