Quote:
Originally Posted by Theitguy
is it because they can read pulses at a higher speed? if so ill do some research on which other pins also have this ability
|
With greater precision, yes. Check out the attachInterrupt link i posted above. In short, interrupts let the software immediately stop what it's doing, deal with the interrupt routine and then return to what it was working on. In this case, basicVssInterrupt figures out the time between VSS pulses (vehicle speed) and increments the VSS pulse count (odometer).
Quote:
Originally Posted by Theitguy
attachInterrupt(1,basicVssInterrupt,RISING);
The figure "1" sets the pin as 3?
|
It depends which board you're using, but that's the gist of it, yes. Again, check the link.