View Single Post
Old 01-20-2009, 04:47 PM   #28 (permalink)
dcb
Don't Panic
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ZZ9 Plural Z Alpha
Posts: 2,984

pimp mobile - '81 gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Golf TDI
90 day: 53.56 mpg (US)
Thanks: 18
Thanked 56 Times in 44 Posts
Quote:
Originally Posted by rmccomiskie View Post
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);
__________________
Saluton, mia nomo estas Dave
  Reply With Quote