mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 10:17:15 +02:00
GPIO refactoring (#6259)
* GPIO refactoring GPIO now using ESP-IDF API on all chips. LEDC interrupt fix removed - no longer needed. Edited pins_arduino.h in variants according to changes in gpio. * Edited analog channels functions
This commit is contained in:
@ -168,12 +168,6 @@ void ledcAttachPin(uint8_t pin, uint8_t chan)
|
||||
.hpoint = 0
|
||||
};
|
||||
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