const int led = 7;
const int tombol = 5;
int statusTombol = 0;
boolean statusLed = false;
void setup() {
pinMode(led, OUTPUT);
pinMode(tombol,INPUT);
// put your setup code here, to run once:
}
void loop() {
statusTombol = digitalRead(tombol);
if (statusTombol == HIGH) {
statusLed = !statusLed;
delay(100);
}
digitalWrite(led,statusLed);// put your main code here, to run repeatedly:
}