Easygpio - easygpio_attachInterrupt
Posted: Wed Mar 25, 2015 3:32 pm
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 .
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 .