Solve for resistor value to make sure that 10mA of current flows through the LED. Use Ohm's law to calculate the value of resistor.
Code
/*Paste your code here*/
const int LED = 7;
void setup() {
// put your setup code here, to run once:
pinMode(LED, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(LED, HIGH);
delay(400);
digitalWrite(LED, LOW);
delay(800);
}