forked from espressif/arduino-esp32
FIX ledc on ESP32C3 (#6229)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user