int buzzer = 17;
int push_button = 16;
void setup() {
// put your setup code here, to run once:
pinMode(buzzer, OUTPUT);
pinMode(push_button, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
int state = digitalRead(push_button);
if(state==LOW){
digitalWrite(buzzer, HIGH);(10)
}
else{
digitalWrite(buzzer, LOW);
}
}