Interrupt

paras99
Posts: 11
Joined: Tue Nov 17, 2020 11:46 am

Interrupt

Postby paras99 » Tue Nov 17, 2020 11:50 am

Is there way to set Interrupt type to detect change in Input instead of detecting only rising or falling signals

alanesq
Posts: 86
Joined: Thu Dec 14, 2017 8:38 pm

Re: Interrupt

Postby alanesq » Tue Nov 17, 2020 12:26 pm

As it happens I have been writing a sketch this morning which does just that :-)

attachInterrupt(digitalPinToInterrupt(<pin>), <procedure>, CHANGE);

paras99
Posts: 11
Joined: Tue Nov 17, 2020 11:46 am

Re: Interrupt_ESP-IDF

Postby paras99 » Wed Nov 18, 2020 5:08 am

Thanks Buddy..But I need the solution for Esp-IDF

alanesq
Posts: 86
Joined: Thu Dec 14, 2017 8:38 pm

Re: Interrupt_ESP-IDF

Postby alanesq » Wed Nov 18, 2020 9:52 am

paras99 wrote:
Wed Nov 18, 2020 5:08 am
Thanks Buddy..But I need the solution for Esp-IDF
Sorry, I have never used Esp-IDF and didn't realise it was that different :-(
this looks like it may be what you are looking for? https://www.lucadentella.it/en/2017/02/ ... nterrupts/

paras99
Posts: 11
Joined: Tue Nov 17, 2020 11:46 am

Re: Interrupt

Postby paras99 » Thu Nov 19, 2020 10:45 am

Yeah I found that . All the possibilities were mentioned in a enum structure

Who is online

Users browsing this forum: No registered users and 177 guests