Unverified Commit 9dbc9087 authored by P-R-O-C-H-Y's avatar P-R-O-C-H-Y Committed by GitHub

FIX ledc on ESP32C3 (#6229)

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment