Quote:
Originally Posted by rmccomiskie
And that a simple method of changing from positive to negative signal is not provided.
|
It is probably simpler overall to change the code than to present an option for the few cases that might need positive switched, but you change these two lines exactly like you mentioned:
Change:
attachInterrupt(0, processInjOpen, FALLING);
attachInterrupt(1, processInjClosed, RISING);
To:
attachInterrupt(0, processInjOpen, RISING);
attachInterrupt(1, processInjClosed, FALLING);