// Pin connected to the LED
const int ledPin = 13;
const int tombol = 12;
// Setup function runs once the start
void setup() {
// Initialize the digital pin as an output
pinMode(ledPin, OUTPUT);
pinMode(tombol, INPUT);
}
// Loop functuion runs repeatedly
void loop() {
// tombol
digitalWrite(tombol, HIGH);
// Turn the LED on
digitalWrite(ledPin, HIGH);
// Wait for 1 second
delay(1000);
// Turn the LED off
digitalWrite(ledPin, LOW);
// Wait for 1 second
delay(1000);
}