Using Arduino as an IDF component: fatal error: Arduino.h: No such file or directory
Posted: Sat Jun 04, 2022 11:26 pm
I created a project using Arduino as an IDF component. The test program works.
I then added my own library function. The library function uses Arduino and therefore has a "# include Arduino.h" statement.
For the library function I get "fatal error: Arduino.h: No such file or directory."
The directory structure is:
-AKArduinoTest/
---CMakeLists.txt
---main/
-----main.cpp
-----CMakeLists.txt
---esp_idf_components/
---components/
-----arduino/
-----Temp18x20/
--------include/
-----------Temp18x20.h
--------Temp18x20.cpp
--------CMakeLists.txt
Any suggestions?
I then added my own library function. The library function uses Arduino and therefore has a "# include Arduino.h" statement.
For the library function I get "fatal error: Arduino.h: No such file or directory."
The directory structure is:
-AKArduinoTest/
---CMakeLists.txt
---main/
-----main.cpp
-----CMakeLists.txt
---esp_idf_components/
---components/
-----arduino/
-----Temp18x20/
--------include/
-----------Temp18x20.h
--------Temp18x20.cpp
--------CMakeLists.txt
Any suggestions?