Arduino GPIO LED Blink

huntezmonstez
huntezmonstez

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)

 

 

 

 

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!