ESP32Servo
ESP32Servo copied to clipboard
Pin GPIO20 not allowed for ESP32-PICO-V3-02
Hi, I use your library for quite some time and I am very satisfied with it.
Recently we moved to the ESP32-PICO-V3-02 chip, which is compatible with the ESP32-WROVER, except that it has some GPIO's differently configured. The PICO version does allow one to use GPIO20, whereas, the original ESP32 does not.
In ESP32PWM.h you diffenretiate between different types of ESP32's, but not the PICO. As the PICO is compiles as CONFIG_IDF_TARGET_ESP32 you can not use that to differentiate.
So either, I would like to dynamically pass the allowed pins, or you could use an active way of probing using:
if (strcmp(ESP.getChipModel(), "ESP32-PICO-V3-02") == 0) {
// define allowed pins for ESP32-PICO-V3-02
} else {
// define allowed pins for default ESP32
}
As a workaround, I patched localy your library. Thanks, Stefan