Ok... I've read through the documentation on interrupts but am still having difficulty working with them.
I need to sense 2 different push buttons and in turn activate different routines. My goal is for the push buttons to behave dependably - I don't want to have to repeatedly push the button to either turn it off or on. Right now, the program is not behaving very well. I often times need to repush the button and/or it won't exit certain routines.
I've commented out the interrupts.
I have push buttons configured with a 10k resistor to ground.
Can anyone help?
I need to sense 2 different push buttons and in turn activate different routines. My goal is for the push buttons to behave dependably - I don't want to have to repeatedly push the button to either turn it off or on. Right now, the program is not behaving very well. I often times need to repush the button and/or it won't exit certain routines.
I've commented out the interrupts.
I have push buttons configured with a 10k resistor to ground.
Can anyone help?
Attachments
-
3.1 KB Views: 14