Hello,
I am using a series of buttons connected to pins 11, 12, 13 and 14 of the mbed board. I have InterruptIn objects using these pins, the pins are set to PullDown, and (finally) a function is attached to be called on a rising edge. The buttons are normally open, connecting to the positive rail when pressed.
It seems that the attached functions are called immediately unless I wire the inputs to ground myself. It seems another user had a similar problem ( http://mbed.org/forum/mbed/topic/379/ ), but they only had the first attached function being called, in my case they all seem to. The first and fourth input are attached to functions which (currently) do nothing, but the second and third are definitely triggering.
Has anyone had a similar issue, or could offer any advice?
Thank you
Hello,
I am using a series of buttons connected to pins 11, 12, 13 and 14 of the mbed board. I have InterruptIn objects using these pins, the pins are set to PullDown, and (finally) a function is attached to be called on a rising edge. The buttons are normally open, connecting to the positive rail when pressed.
It seems that the attached functions are called immediately unless I wire the inputs to ground myself. It seems another user had a similar problem ( http://mbed.org/forum/mbed/topic/379/ ), but they only had the first attached function being called, in my case they all seem to. The first and fourth input are attached to functions which (currently) do nothing, but the second and third are definitely triggering.
Has anyone had a similar issue, or could offer any advice?
Thank you