How do you plan to solve it?
Steps:
To calculate the resistor value:
So,
R = 5V−1.8V /10mA
= 3.2V / 0.01A
= 320 Ω
/*Paste your code here*/
void setup(){
pinMode(13, OUTPUT);
}
void loop(){
digitalWrite(13,HIGH);
delay(400);
digitalWrite(13,LOW);
delay(800);
}
Add video of the output (know more)
Add a photo of your hardware showing the output.