I want to generate PWM signal from ESP 32 on board pins using LedC library functions.
/**
* Sets up a channel (0-15), a PWM duty cycle frequency, and a PWM resolution (1 - 16 bits)
*/
double ledcSetup(uint8_t channel, double freq, uint8_t resolution_bits);
/**
* Writes out a duty cycle value to the specified channel. The duty cycle value should be
* between 0 - 2^PWM resolution
*/
void ledcWrite(uint8_t channel, uint32_t duty);
/**
* Attach the given pin to the specified channel (0-15)
*/
void ledcAttachPin(uint8_t pin, uint8_t channel);
/**
* Detach the previously attached pin
*/
void ledcDetachPin(uint8_t pin);