Arduino as component PlatformIO, Arduino.h not found
Posted: Tue Aug 18, 2020 9:32 pm
I have a project built using the Arduino framework and PlatformIO. I want to get rid of setup and loop, so I'm trying to make the project use the esp-idf and Arduino as a component. After adding "framework = espidf, arduino" to platformio.ini, the compiler can't find Arduino.h. I tried adding defines to sdkconfig.h but it doesn't help.
Help would be appreciated.#define CONFIG_ENABLE_ARDUINO_DEPENDS 1
#define CONFIG_AUTOSTART_ARDUINO 0
#define CONFIG_ARDUINO_RUN_NO_AFFINITY 1
#define CONFIG_ARDUINO_RUNNING_CORE -1
#define CONFIG_ARDUINO_EVENT_RUN_NO_AFFINITY 1
#define CONFIG_ARDUINO_EVENT_RUNNING_CORE -1
#define CONFIG_ARDUHAL_LOG_DEFAULT_LEVEL 1