// Pemrograman 1 LED, 1 Pushbutton
int led = 2 ;
int tombol = 3 ;
int jumlahtekan ;
void setup() {
pinMode(led, OUTPUT);
pinMode(tombol, INPUT_PULLUP);
}
void loop() {
int pencettombol = digitalRead(tombol);
if ( pencettombol == LOW){
jumlahtekan ++;
delay(200);
if(jumlahtekan ==1 ){
digitalWrite(led, HIGH);}
else if( jumlahtekan ==2){
digitalWrite(led, LOW);
jumlahtekan = 0;}
}
}