Bounce - can you change parameter on the fly ?

Status
Not open for further replies.
Hi,

I'm using the 'Bounce' function according to the rules by defining :

int myDelay = 5;
Bounce myButton = Bounce(pin, myDelay);

... once the program is running, can I change the value of myDelay ( through user input of some sort ) and expect the Bounce function to use the new value, or am I stuck with whatever was defined at compilation time ?

Thanks !
 
Status
Not open for further replies.
Back
Top