My Arduino Uno L Led keep Turn on but i can still upload code

My arduino is stop working 2 days ago then i flash the bootloader and it works but The L LED Is Keep Turned on

Anyone can help?

The L led is the led connected to pin 13; it's quite normal that that is on if you don't switch it specifically off in code.

A simple pinMode(LED_BUILTIN, OUTPUT) will probably already be enough although it's better to add a digitalWrite(LED_BUILTIN, LOW) as well.

Im using the pwm Code but its still on :frowning:

Pin 13 on an Uno is not a PWM pin.

What is the pwm code? Please post the code here using code tags.

To use code tags
Type
** **[code]** **

Paste your code after that
Type
** **[/code]** **

I know 13 is not a PWM pin im using timer1 or 9 and 10 it keep turned on

Just upload the blink example to see if it's working .

the blink does working

So what's the problem?

The L LED is annoyingwhen it keeps turn on if use another code :frowning:

Then switch it off in your code.