Skip to content

Determine Board Type #6583

Discussion options

You must be logged in to vote

Many thanks to @atanisoft & miraculix200 over on Gitter for solving this one. Their answers:

Miraculix200
have a look at https://github.com/espressif/esp-idf/blob/master/examples/wifi/power_save/main/power_save.c#L98
while it says CONFIG_IDFTARGET* it will also work in Arduino

Mike Dunston @atanisoft
If you are targeting to ESP32 (not S2/S3/C3) boards that are listed in boards.txt you can use the value after the = on lines like this:

esp32s3.build.board=ESP32S3_DEV
which expands from ARDUINO_{build.board} to ARDUINO_ESP32S3_DEV (as example). Using CONFIG_IDF_TARGET_{ESP32, ESP32C3, ESP32S2, ESP32S3} will only work for arduino-es…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Xylopyrographer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant