I would like to have interrupt "change" as in Arduino. I looked at document about interrupt , there were "falling", "rising", and "both". I have tried to use "both" option but the callback function did not trigger when the input was pulled up or down.
Please help me!
gpio04 = 4
print("gpio04" .. gpio.read(gpio04))