Added method to change the ledc PWM frequency programmatically (#5003)

Added method to change the ledc PWM frequence programmatically
Returning frequency from ledcChangeFrequency
This commit is contained in:
Richard Strassheim
2021-04-17 01:06:58 +02:00
committed by GitHub
parent 57cf2fb9f5
commit 01c8cae0dc
2 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,7 @@ uint32_t ledcRead(uint8_t channel);
double ledcReadFreq(uint8_t channel);
void ledcAttachPin(uint8_t pin, uint8_t channel);
void ledcDetachPin(uint8_t pin);
double ledcChangeFrequency(uint8_t channel, double freq, uint8_t resolution_bits);
#ifdef __cplusplus