servo and Led do not work together with analogWrite

Hello, can someone tell me why the servo and Led do not work together using analogWrite?
the servo works well but the led does'nt work it could be only low or high.

#include <Servo.h>
 

#define PIN_SERVO 11
 #define led 10
Servo servo;

 
void setup() {
  pinMode(12,OUTPUT);
  servo.attach(PIN_SERVO);

  
}
 
void loop() {
  
servo.write(180);
analogWrite(10,15);
 
}

Does this help?

RTFM early, RTFM often.

BTW, despite your question, there is no analogRead in your code.

i read it before severals time, the problem is when you put servo.attach(PIN_SERVO); the analogread will not work

What part of "there is no analogRead in your code" don't you comprehend?

Did you really, really read the page I linked to?
Specifically the second paragraph.

You missed the part in the servo library reference about the servo library disabling analogWrite on pins 9 and 10.

@groundfungus thanks a lot you are very helpful :slight_smile:

@jone31 I surmise from the context and the time at which you edited the opening post, that you changed "analogRead" to "analogWrite". It's customary when we edit posts, to indicate what we edited; that way you don't make folk who responded before the edit look like dicks.

I don't feel I look like a dick, because reply #2 is still screwed.

But yeah, don't do it.

And don't claim to have RTFMed "several times" when you clearly haven't.