未验证 提交 9dbc9087 编写于 作者: P P-R-O-C-H-Y 提交者: GitHub

FIX ledc on ESP32C3 (#6229)

上级 9b066ea6
......@@ -169,7 +169,11 @@ void ledcAttachPin(uint8_t pin, uint8_t chan)
};
ledc_channel_config(&ledc_channel);
//Making attachInterrupt to work.
//WILL BE REMOVED AFTER REFACTORING GPIO to use ESP-IDF API
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
pinMode(pin,OUTPUT);
#endif
}
void ledcDetachPin(uint8_t pin)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册