#define BUTTON 22
#define LED 26
void setup() {
// put your setup code here, to run once:
pinMode(BUTTON, INPUT);
pinMode(LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int tombol = digitalRead(BUTTON);
if (tombol == HIGH) {
digitalWrite(LED, HIGH);
}
else if (tombol == LOW) {
digitalWrite(LED, LOW);
}
}