-->
Page 1 of 2

Easygpio - easygpio_attachInterrupt

PostPosted: Wed Mar 25, 2015 3:32 pm
by emogg
Has anyone used the latest version of this gpio helper software (https://github.com/eadf/esp8266_easygpio). The format of the attachInterrupt function changed and I cannot work out how to use it. The previous version worked fine. The prototype changed from:

bool easygpio_attachInterrupt(uint8_t gpio_pin, EasyGPIO_PullStatus pullStatus, void (*interruptHandler)(int8_t key));

to:

bool easygpio_attachInterrupt(uint8_t gpio_pin, EasyGPIO_PullStatus pullStatus, void (*interruptHandler)(void *arg), void *interruptArg);

I'd ask the author, but don'y know how to do this on github :? .

Re: Easygpio - easygpio_attachInterrupt

PostPosted: Thu Mar 26, 2015 3:17 am
by alon24
Can you please explain more about this attachio?

Re: Easygpio - easygpio_attachInterrupt

PostPosted: Thu Mar 26, 2015 5:07 am
by emogg
It is just an easy way of accessing the gpio pins without having to look up all the details. Just have a look at the github link above

Re: Easygpio - easygpio_attachInterrupt

PostPosted: Thu Mar 26, 2015 2:12 pm
by raz123
emogg wrote:I'd ask the author, but don'y know how to do this on github :? .


Open an issue ticket on the author's github.