# Help Me - Compilation error: ‘ledcSetup’ was not declared in this scope please help me

**URL:** <https://forum.sunfounder.com/t/help-me-compilation-error-ledcsetup-was-not-declared-in-this-scope-please-help-me/2977>\
**Category:** General Discussion\
**Created:** [April 3, 2025, 4:32pm UTC](https://forum.sunfounder.com/t/help-me-compilation-error-ledcsetup-was-not-declared-in-this-scope-please-help-me/2977 "2025-04-03T16:32:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dona122](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@Dona122](https://forum.sunfounder.com/u/Dona122)\
**Post date:** [April 3, 2025, 4:32pm UTC](https://forum.sunfounder.com/t/help-me-compilation-error-ledcsetup-was-not-declared-in-this-scope-please-help-me/2977/1 "2025-04-03T16:32:04Z")

</div>

I’m working through the ESP32-38 pin wide. I was building a gyroscope controlled robot car.

Another person had the same error. Someone there replied that it could be done by installing SP32 2.0.14. I tried installing 2.0.14 but it is not downloading.  
what do i do ?  
please answer me because this is my college project..

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [April 7, 2025, 7:20am UTC](https://forum.sunfounder.com/t/help-me-compilation-error-ledcsetup-was-not-declared-in-this-scope-please-help-me/2977/2 "2025-04-07T07:20:39Z")

</div>

Did you encounter any error messages during the Arduino IDE installation? Have you added the ESP32 board repository URL to your Arduino IDE? Please refer to the following installation guide for reference: [Arduino-ESP32 Installation Documentation](https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html)

---

<div class="post-metadata">

**Author:** ![Dona122](https://avatars.discourse-cdn.com/v4/letter/d/f14d63/32.png) [@Dona122](https://forum.sunfounder.com/u/Dona122)\
**Post date:** [April 15, 2025, 8:18am UTC](https://forum.sunfounder.com/t/help-me-compilation-error-ledcsetup-was-not-declared-in-this-scope-please-help-me/2977/4 "2025-04-15T08:18:42Z")

</div>

The problem has been solved. Thank you
