I have been trying to get the interrupt functions to work, but I'm getting strange results. If I use onPinFall it appears to not work at all. If I use onPinRise the function is called when the pin goes high AND when the pin goes low. I tried the interrupt example, direct cut and paste, using onPinFall and it didn't work either.
I'm using Linux Mint 18.3, Zerynth 2.1, and an Arduino Due.
I've attached my full program, and a copy of the output. You can see that the "released" function gets called but the "pressed" function is never called. You can also see a few places where "release" is called when I have pressed the button, and is then called again when I release the button. It is also called twice when I have quickly pressed and released the button.
What am I doing wrong?