Pwm.h - Edc_channel_config(380): gpio_num argument is invalid

Hello.
I try to use pins 36, 39, 34, 25, 26, 27 with pwm.h lib. After call function “bool mgos_pwm_set(int pin, int freq, float duty);” for pins 36, 39, 34 appeared an error:

esp32_pwm.c:113         LEDC channel config failed: 258
e[0;31mE (86362) ledc: ledc_channel_config(380): gpio_num argument is invalide[0m
esp32_pwm.c:113         LEDC channel config failed: 258
e[0;31mE (86372) ledc: ledc_channel_config(380): gpio_num argument is invalide[0m
esp32_pwm.c:113         LEDC channel config failed: 258
e[0;31mE (86392) ledc: ledc_channel_config(380): gpio_num argument is invalide[0m

Pins 25, 26, 27 work well.
What’s a problem or feature with pins 36, 39, 34?

AFAIR, 34-39 are only in.

1 Like

For convenience, I used this pinout

After your reply, I opened datasheet, and it’s really trueth 34-39 are only inputs. Pinout at the picture is with mistakes!..

There is not the first time I’m convinced, that only datasheets can be trusted.

Thank you so much!