int led = 13;
int tombol = 0;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
pinMode(tombol, INPUT_PULLUP);
3
}
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);