got the pushbuttons wired up and only the cancel button works. im trying to figure out this function:
void updateRouteNumber() {
// gather the digits for route
if (digitNum == 1) {
newRoute = 0;
}
for (byte n = 0; n < numCodeButtons; n ++) {
if (digitalRead(codeButtonPin[n]) == LOW) {
newRoute = newRoute * 10 + n;
}
}
digitNum ++;
if (digitNum > maxDigits) {
digitNum = 1;
route = newRoute;
}
}
It looks like n being the pushbutton pressed times 10 but wouldnt the 2nd n be the same number as the first?
I hooked up the pushbuttons all the same way as i did the cancel button. The cancel button works perfect.
Thanx
Harrison