Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9dbc908

Browse filesBrowse files
authored
FIX ledc on ESP32C3 (#6229)
1 parent 9b066ea commit 9dbc908
Copy full SHA for 9dbc908

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎cores/esp32/esp32-hal-ledc.c

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-ledc.c
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ void ledcAttachPin(uint8_t pin, uint8_t chan)
169169
};
170170
ledc_channel_config(&ledc_channel);
171171

172+
//Making attachInterrupt to work.
173+
//WILL BE REMOVED AFTER REFACTORING GPIO to use ESP-IDF API
174+
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2
172175
pinMode(pin,OUTPUT);
176+
#endif
173177
}
174178

175179
void ledcDetachPin(uint8_t pin)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.