Using Arduino Uno on Wokwi, I started with inserting a LED light and the resistor, then I connected GND to the LED, LED to the resistor and lastly the resistor to the GPIO pin 4.
void setup() {
pinMode(4,OUTPUT);
}
void loop() {
digitalWrite(4,HIGH);
delay(400);
digitalWrite(4,LOW);
delay(800);
}
Add video of the output (know more)
https://wokwi.com/projects/443537936500297729
Add a photo of your hardware showing the output.
