# define pushButton01 15
# define pushButton02 2
void setup() {
// put your setup code here, to run once:
pinMode(pushButton01, INPUT);
pinMode(pushButton02, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int pushButtonState01 = digitalRead(pushButton01);
int pushButtonState02 = digitalRead(pushButton02);
if (pushButtonState01 == LOW){
Serial.println("push button 01 is pressed.");
delay(100);
}
if (pushButtonState02 == LOW){
Serial.println("push button 02 is pressed.");
delay(100);
}
}