View Single Post
Old 01-20-2009, 04:47 PM   #28 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,012

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

schnitzel - '01 Golf TDI
90 day: 53.56 mpg (US)
Thanks: 153
Thanked 254 Times in 201 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);
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote