Esp 32 pwm channel

I’m pretty new to the esp 32 and I was just trying some things out. when I found a problem… I used a standart code to dimm a led with ledc. worked just fine but when I changed the pwm channel to anything other then 0 nothing works anymore… everywhere I looked it says that there are 16 channels (0-15) but why are 15 of them not working for me?

code:

// the number of the LED pin
const int ledPin = 0; // 16 corresponds to GPIO16

// setting PWM properties
const int freq = 5000;
const int ledChannel = 1;
const int resolution = 8;

void setup(){

ledcSetup(ledChannel, freq, resolution);

ledcAttachPin(ledPin, ledChannel);
}

void loop(){

for(int dutyCycle = 0; dutyCycle <= 255; dutyCycle++){

ledcWrite(ledChannel, dutyCycle);
delay(15);

}

for(int dutyCycle = 255; dutyCycle >= 0; dutyCycle–){

ledcWrite(ledChannel, dutyCycle);   
delay(15);

}
}