//pembuat program: M. YOGA NUGRAHA R
void setup() {
pinMode(5, OUTPUT);
pinMode(15, INPUT);
}
void loop() {
if(digitalRead(15) == HIGH){
digitalWrite(5, HIGH);
} else {
digitalWrite(5, LOW);
}
}
//pembuat program: M. YOGA NUGRAHA R
void setup() {
pinMode(5, OUTPUT);
pinMode(15, INPUT);
}
void loop() {
if(digitalRead(15) == HIGH){
digitalWrite(5, HIGH);
} else {
digitalWrite(5, LOW);
}
}