Sshu03:
Thanks for the help, but I am also rather new to arduino, could you explain how a millis() timer would work in my project?
Assume you have a variable the keeps track of how many buttons are pressed. Then something like this pseudo code
if (numButtonsPressed == 2) {
if prevNumButtonsPressed < 2) { // the number pressed has just changed
twoButtonsStartTime = millis();
}
if (millis() - twoButtonsStartTime >= millisForOneStep) {
// two feet were on the ground longer than the period of a normal step
}
else {
// assume that a step is in progress - perhaps do nothing
}
}
prevNumButtonsPressed = numButtonsPressed;
...R