void gotCoin() {
if (buttonState == LOW);
digitalWrite (relayPin, HIGH);
}
}
Another useless semicolon in a useless (incorrectly placed) function.
Before wasting time posting code, you should at least make sure it compiles.
void gotCoin() {
if (buttonState == LOW);
digitalWrite (relayPin, HIGH);
}
}
Another useless semicolon in a useless (incorrectly placed) function.
Before wasting time posting code, you should at least make sure it compiles.