So do I understand it right:
attachInterrupt(0, countP, RISING)...the external interrupt(0) is on pin 2 on the Uno, so my sensor is connected there.
...countP is the code that will run when RISING occures.
You got it, and you are welcome.
Lefty
So do I understand it right:
attachInterrupt(0, countP, RISING)...the external interrupt(0) is on pin 2 on the Uno, so my sensor is connected there.
...countP is the code that will run when RISING occures.
You got it, and you are welcome.
Lefty