Go Down

Topic: PinChangeInt library- To attach interrupts to multiple Arduino (Uno/Mega) pins (Read 21 times) previous topic - next topic

robtillaart

oops,
I figured that out too and you replied while I removed my previous post,
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

GreyGnome

Version 2.19beta has been released. The library now includes Sanguino support. There have been a number of recent bugfixes, so be sure to look at the Release Notes. If you have any library prior to version 2.17beta, it is highly recommended that you upgrade to 2.17beta or later.

MorgKrig

hey,

I like to use the PINCHANGE Library with the Arduino DUE.
But I still get this failure:
Code: [Select]
In file included from FirstTask.ino:24:
.....\Arduino\libraries\PinChangeInt/PinChangeInt.h:103: fatal error: new.h: No such file or directory
compilation terminated.

Maybe some know this failure?

I need to use the pinchange lib because I need to know of many pins, which pin has changed without using for every pin a own function like this:
Code: [Select]
     attachInterrupt(1, action1, HIGH);
attachInterrupt(2, action2, HIGH); 


Maybe someone knows also an alternative solution :-)

robtillaart

(very little Due experience)
you could try to uncomment it , and see if it is needed for the DUE
The DUe is an ARM processor while the lib was originally written for the AVR.

just a thought!
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Jantje


hey,

I like to use the PINCHANGE Library with the Arduino DUE.
But I still get this failure:
Code: [Select]
In file included from FirstTask.ino:24:
.....\Arduino\libraries\PinChangeInt/PinChangeInt.h:103: fatal error: new.h: No such file or directory
compilation terminated.

Maybe some know this failure?

I need to use the pinchange lib because I need to know of many pins, which pin has changed without using for every pin a own function like this:
Code: [Select]
     attachInterrupt(1, action1, HIGH);
attachInterrupt(2, action2, HIGH); 


Maybe someone knows also an alternative solution :-)


Not sure why you would need that.
The attach interrupt doc at http://arduino.cc/en/Reference/AttachInterrupt clearly states:
Quote
The Arduino Due board has powerful interrupt capabilities that allows you to attach an interrupt function on all available pins. You can directly specify the pin number in attachInterrupt().

The overhead of creating a function for each pin is probably nothing compared to linking and porting the pinchangeint lib.
Not that I would care about the size of the program or data when writing code for the due.
Best regards
Jantje
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Go Up