I found this code for checking if a button on digital pin 2 has been pressed and it works fine. However I would like to also use pin 10. So if digital pin 2 is pressed or digital pin 10 is pressed then go and start the program. Not sure how to do this, but any help would be appreciated.
const byte buttonPin = 2; pinMode(buttonPin, INPUT_PULLUP); while (digitalRead(buttonPin) == HIGH)