Problem with pwm.write

pwm.write(pin,0,0) should disable pwm as documentation say, but the command throws an error. How can i disable pwm writing process?

Hi @a.vistocco6
With your ESP32,Could you try the PWM Fade example
, Does the pwm go off on i = 0?