erropix / ESP32_AnalogWrite

Provides an analogWrite polyfill for ESP32 using the LEDC functions
MIT License
161 stars 36 forks source link

Update analogWrite.cpp to heal breaking changes on LEDC API. #16

Closed dee1337 closed 2 months ago

dee1337 commented 2 months ago

The LEDC API has been changed. ledcAttach used to set up the LEDC pin (merged ledcSetup and ledcAttachPin functions)

For more information, see [1] https://github.com/espressif/arduino-esp32/blob/master/docs/en/api/ledc.rst (23.08.2024)

Changes were tested on ESP32-WROOM-32 hardware.

fix for https://github.com/erropix/ESP32_AnalogWrite/issues/15

erropix commented 2 months ago

Thank you for the help, I will adjust the other files and release a new version