Hello,
In relation to button press detection, I'm curious if I'm utilizing both GPIO_INT_EDGE and GPIO_IN_DOUBLE_EDGE if I can pass the interrupt type to my callback to know whether it was triggered by rising or falling of the button? At the moment I'm doing this by keeping a count of button presses and then using basic math to determine if the value is even or odd. Even = button down, odd = button up. Is there a better way to do this?