How do you plan to solve it?
for this problem i will make sure to connect the right led and right resistor to connect in the circuit i will take led of 1.8v drop voltage and 320ohms resistor to get the current of 10mA. using ohms law v=ir,i=v/r so,
I=3.2/320 = 0.01 that is 10mA.
next for the code i will initialize the variable of gpio pin and then set it as output.
and next step is to set a delay of ON period of 400milliseconds and 800ms for OFF period using delay function.
led_pin =13;
void setup(){
pinMode(led_pin,OUTPUT);
}
void loop(){
digitalWrite(led_pin,HIGH);
delay(400);
digitalWrite(led_pin,LOW);
delay(800);
}
Add video of the output (know more)
Add a photo of your hardware showing the output.