Show Posts
Pages: [1]
1  Community / Exhibition / Gallery / Re: PinChangeInt library- To attach interrupts to multiple Arduino (Uno/Due) pins on: June 30, 2012, 09:33:42 am
Is it somehow possible to change the trigger event of a pint without calling the detachInterrupt followd by an attachInterrupt?

Quote
    PCintPort::detachInterrupt(PinIndex);   
    PCintPort::attachInterrupt(PinIndex, PinChangeInt_RC, FALLING);   

Is there somethong like a  PCintPort:ChangeTrigger(Pin, UserFunc, TriggerEvent);  ???

I'm asking because I think there is a lot of overhead wehen I call deleteIntterupt + attachInterrupt just to change the trigger event.
Pages: [1]