-
#if defined(ESP8266)
#pragma message "ESP8266 stuff happening!"
#elif defined(ESP32)
#pragma message "ESP32 stuff happening!"
#else
#error "This ain't a ESP8266 or ESP32, dumbo!"
#endif
https://community.platformio.org/t/compile-on-both-esp32-and-esp8266/14356
Compile on both ESP32 and ESP8266
what is the best way to #ifdef ESP32 and #ifdef ESP8266 is there some variable I can use to ifdef some part of the code in case using esp8266 and some part in case I use esp32? thanks
community.platformio.org
'board_android-IoT > ESP32' 카테고리의 다른 글
ESP32 응용 제품 (0) | 2025.03.26 |
---|---|
ESP32-S3-A7670E-4G , Developement environment (0) | 2024.11.28 |
ESP32 UDP SEND_RECV example (0) | 2024.09.10 |
ESP32 UDP SEND_RECV example (0) | 2024.09.06 |
ESP8266 , DB18B20 connection (0) | 2024.07.29 |