8. LED Blink

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

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.

 
 

 

 

 

Code

void setup() {
pinMode(4,OUTPUT);
}

void loop() {
digitalWrite(4,HIGH);
delay(400);
digitalWrite(4,LOW);
delay(800);

}

 

 

 

Output

Video

Add video of the output (know more)

https://wokwi.com/projects/443537936500297729

 

Was this helpful?
Upvote
Downvote