diff --git a/esphome/core/defines.h b/esphome/core/defines.h index 598b08063b..d4187d4c08 100644 --- a/esphome/core/defines.h +++ b/esphome/core/defines.h @@ -78,6 +78,7 @@ #define USE_VOICE_ASSISTANT #define USE_MICROPHONE #define USE_SPEAKER +#define USE_SPI #ifdef USE_ARDUINO #define USE_ARDUINO_VERSION_CODE VERSION_CODE(2, 0, 5) @@ -97,9 +98,7 @@ #define USE_HTTP_REQUEST_ESP8266_HTTPS #define USE_SOCKET_IMPL_LWIP_TCP -#ifdef USE_LIBRETINY -#define USE_SOCKET_IMPL_LWIP_SOCKETS -#endif +#define USE_SPI // Dummy firmware payload for shelly_dimmer #define USE_SHD_FIRMWARE_MAJOR_VERSION 56 @@ -112,6 +111,11 @@ #ifdef USE_RP2040 #define USE_ARDUINO_VERSION_CODE VERSION_CODE(3, 3, 0) #define USE_SOCKET_IMPL_LWIP_TCP +#define USE_SPI +#endif + +#ifdef USE_LIBRETINY +#define USE_SOCKET_IMPL_LWIP_SOCKETS #endif #ifdef USE_HOST