Closed AmberElferink closed 2 years ago
You can try to add that in your platformio.ini:
build_flags =
-D ARDUINO=100
-D ESP32=1
Be careful if you make it works because you will get also this warning:
Warning! Arduino framework as an ESP-IDF component doesn't handle the variant
field! The default esp32
variant will be used.
So the depending on which board you are using the pins definition could be wrong. Also you may have other side effects.
I'm curious if anyone as a better solution. I mean by using the example out of the box with no build_flags and having the right pins definition.
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.
The espidf-arduino-blink sketch will not compile: https://github.com/platformio/platform-espressif32/tree/develop/examples/espidf-arduino-blink
Steps to reproduce: Clone the platform-espressif32 github. Open the espidf-arduino-blink folder via PlatformIO in Visual Studio Code. Try to build the project by hitting the Build button in PlatformIO. No other changes were made.
Expected result: It compiles
Actual result: