void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
pinMode(4, INPUT);
}
void loop() {
int tombol = digitalRead(4);
if(tombol == 1){
// put your main code here, to run repeatedly:
digitalWrite(13, HIGH); // this speeds up the simulation
}
else {
digitalWrite(13, LOW);
}
delay(10);
}