Answers checklist.
What is the expected behavior?
I am using esp-idf 6.0 and trying to write a simple example app. I should be able to include espp/led as a dependency and use the example code given in the library.
What is the actual behavior?
I am getting error while building. In the include/led.hpp file, below errors is displayed
fatal error: driver/ledc.h: No such file or directory
Steps to reproduce.
- Create a new esp-idf project and use idf version 6.0
- Include the library as dependency using below command ```
df.py add-dependency "espp/led^1.0.36"
3. Clean and build you project
### Build or installation Logs.
```plain
In file included from /Users/rajeev/Workspace/HomeLab/automation/power-sensor/managed_components/espp__led/src/led.cpp:1:
/Users/rajeev/Workspace/HomeLab/automation/power-sensor/managed_components/espp__led/include/led.hpp:9:10: fatal error: driver/ledc.h: No such file or directory
9 | #include <driver/ledc.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
More Information.
If you add REQUIRES esp_driver_ledc in the component CMakeFile the error goes away.
Answers checklist.
What is the expected behavior?
I am using esp-idf 6.0 and trying to write a simple example app. I should be able to include espp/led as a dependency and use the example code given in the library.
What is the actual behavior?
I am getting error while building. In the include/led.hpp file, below errors is displayed
Steps to reproduce.
df.py add-dependency "espp/led^1.0.36"
More Information.
If you add REQUIRES esp_driver_ledc in the component CMakeFile the error goes away.