I need help with this arduino simulation

Hi!, im using tinkercad for this simulation and i would love a solution to this two problems.

IN THE 3 COLORED LEDS: current through led is 45.7 mA, while recommended maximum is 20.0 mA. the usable lifetime of the led may be reduced .

IN ARDUINO: Current through I/O Pins D5, D4 And D3 exceeds the absolute maximum of 40.0 mA. This may permanently damage the Arduino

Thanks!

Since we do not know the values of the resistors in series with the LEDs, try doubling the resistance, or tripling it.

Well, yes. Your 330R resistors are shorted out and they're effectively not in the circuit.

Do the following to all three LEDs and resistors.

Oh the value of the resistors are with 220 Ω

And this is the code:

THANK YOU SO MUCH IT WORKED!

Regards Van!