// Source code in Arduino IDE
#ifdef CONFIG_IDF_TARGET_ESP32
#warning "[ESP32]"
#elif CONFIG_IDF_TARGET_ESP32S3
#warning "[ESP32S3]"
#endif
1. if select ESP32
> compile result:
....: warning: #warning "[ESP32]" [-Wcpp]
#warning "[ESP32]"
^~~~~~~
2. if select ESP32S3
- In arduino IDE, Menu: Tools-> Board -> ESP32 -> ESP32S3
...warning: #warning "[ESP32S3]" [-Wcpp]
#warning "[ESP32S3]"
^~~~~~~
Reference:
What is the specific #if defined(ARDUINO_ARCH_ESP32) for ESP32-S2, ESP32-S3, ESP32-C3?
as title. what is the specific #if defined(ARDUINO_ARCH_ESP32) for ESP32-S2, ESP32-S3, ESP32-C3? I want to do something only if ESP32-S2 is used for example.
community.platformio.org
'board_android-IoT > arduino_esp8266_esp32' 카테고리의 다른 글
| Arduino - ADC voltage measurement using Aref (0) | 2023.06.15 |
|---|---|
| Arduino External Interrup + Button (0) | 2021.08.22 |
| STM32 CPU and 7Segment interface (0) | 2021.08.13 |
| ESP8266-weather(temperature_humidity) station (0) | 2021.05.14 |
| MINIDK, ESP8266-weather(temperature_humidity) station (0) | 2021.05.05 |
