Hi Guys,
I'm trying to figure out which method might be the best, or the most effective, and how I might go about this.
I'm going to build a little test circuit involving a button and an encoder. My goal is to be able to hold down the button (indefinitely) whilst increasing or decreasing the encoder's value. Upon release of the button, the value of the encoder would then be stored to the variable of the button.
I'm wondering how I would achieve something like this? Would an ISR be suitable, or perhaps the millis function or a while loop.
Any guidance would be great here
Thanks
M
I'm trying to figure out which method might be the best, or the most effective, and how I might go about this.
I'm going to build a little test circuit involving a button and an encoder. My goal is to be able to hold down the button (indefinitely) whilst increasing or decreasing the encoder's value. Upon release of the button, the value of the encoder would then be stored to the variable of the button.
I'm wondering how I would achieve something like this? Would an ISR be suitable, or perhaps the millis function or a while loop.
Any guidance would be great here
Thanks
M