8. LED Blink

Back To All Submissions
Previous Submission
Next Submission

Solving Approach

How do you plan to solve it?

 To ensure there is a current of 10mA through the LED, the resistor must have a value of 5/0.01 = 500 Ohm
 

 

 

Code

/*Paste your code here*/
#define led 2
void setup() {
	pinMode(led, OUTPUT);
}

void loop() {
	digitalWire(led, HIGH);
	delay(400);
	digitalWire(led, LOW);
	delay(800);
}

 

 

 

Output

Video

Add video of the output (know more)

 

 

 

 

Was this helpful?
Upvote
Downvote