#define merah 13
#define tombol 7
void setup() {
//put your code here, to run once
pinMode(merah, OUTPUT);
pinMode(tombol, INPUT);
}
void loop() {
//put your code here, to run repeatedly
if(digitalRead(tombol) == HIGH){
digitalWrite(13, HIGH);
delay(1000);
}
else{
digitalWrite(13, LOW);
}
}