Closed GoogleCodeExporter closed 8 years ago
I'm not sure why you need to assign. I have a full example at the bottom of
https://code.google.com/p/arduino-pinchangeint/wiki/Usage . This should show
you what you need to do. Let me know if you have any questions about it.
Original comment by m...@schwager.com
on 4 Apr 2013 at 3:03
...btw, the definition is here in the code (this example for Port B):
#ifndef NO_PORTB_PINCHANGES
ISR(PORTBVECT) {
#ifdef PINMODE
PCintPort::s_PORT='B';
#endif
PCintPort::curr = portB.portInputReg;
portB.PCint();
}
#endif
...You don't need to worry about which object you're using; the Interrupt
vector is defined when you use the static function attachInterrupt, which does
the heavy lifting of threading through the object structures to assign your
interrupt routine to a given pin.
Original comment by m...@schwager.com
on 4 Apr 2013 at 3:08
Original comment by m...@schwager.com
on 13 Apr 2013 at 4:14
Original issue reported on code.google.com by
cornwall...@gmail.com
on 3 Apr 2013 at 3:56