int led = 13;
int tombol = 0;
void setup( ) {
pinMode (led, OUTPUT);
pinMode (tombol, INPUT_PULLUP);
// put your main code here, to run repeatedly:
void loop () {
// put your main code here, to run repeatedly:
int baca = digitalRead(tombol);
if (baca==LOW){
digitalWrite(led, HIGH);
}
if (baca==HIGH) {
digitalWrite (led, LOW);
}
}