esp8266_easygpio
esp8266_easygpio copied to clipboard
Typo in easygpio_inputGet ?
I don't know if this will solve the bug you describe in the comment (haven't tried it) but it looks like there might be a typo in the implementation of easygpio_inputGet on line 301: https://github.com/eadf/esp8266_easygpio/blob/master/easygpio.c#L301
// this does *not* work, maybe GPIO_IN_ADDRESS is the wrong address
return ((GPIO_REG_READ(GPIO_IN_ADDRESS) > gpio_pin) & 1UL);
Shouldn't that > be a >> instead?