#define Ledmerah 2
void setup() {
pinMode(Ledmerah, OUTPUT);
}
void lampu_kedip() {
digitalWrite(Ledmerah, HIGH);
delay(1000);
digitalWrite(Ledmerah, LOW);
delay(1000); // Add a delay to control the blinking rate
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 0; i < 5; i++) {
lampu_kedip(); // Call the function to blink the LED
delay(500); // Delay between each blink
}
}