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

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

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 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