diff --git a/src/lgfx/v1/panel/Panel_SH8601Z.cpp b/src/lgfx/v1/panel/Panel_SH8601Z.cpp index 9a7db94c..f154956d 100644 --- a/src/lgfx/v1/panel/Panel_SH8601Z.cpp +++ b/src/lgfx/v1/panel/Panel_SH8601Z.cpp @@ -15,6 +15,9 @@ * [mongonta0716](https://github.com/mongonta0716) * [tobozo](https://github.com/tobozo) * /----------------------------------------------------------------------------*/ + +#if defined (ESP_PLATFORM) + #include "Panel_SH8601Z.hpp" #include "../Bus.hpp" #include "../platforms/common.hpp" @@ -594,3 +597,6 @@ namespace lgfx //---------------------------------------------------------------------------- } } + + +#endif diff --git a/src/lgfx/v1/panel/Panel_SH8601Z.hpp b/src/lgfx/v1/panel/Panel_SH8601Z.hpp index 4eeeade4..bdc631b0 100644 --- a/src/lgfx/v1/panel/Panel_SH8601Z.hpp +++ b/src/lgfx/v1/panel/Panel_SH8601Z.hpp @@ -17,6 +17,8 @@ * /----------------------------------------------------------------------------*/ #pragma once +#if defined (ESP_PLATFORM) + #include "Panel_Device.hpp" namespace lgfx @@ -71,3 +73,5 @@ namespace lgfx //---------------------------------------------------------------------------- } } + +#endif diff --git a/src/lgfx/v1/platforms/esp32/common.hpp b/src/lgfx/v1/platforms/esp32/common.hpp index 7151b1dc..343ed5a1 100644 --- a/src/lgfx/v1/platforms/esp32/common.hpp +++ b/src/lgfx/v1/platforms/esp32/common.hpp @@ -47,8 +47,9 @@ Original Source: #if defined ( ESP_IDF_VERSION_VAL ) #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0) #define LGFX_IDF_V5 + // NOTE: in order to optimize maintenance, QSPI support is deliberately limited to esp-idf version >= v5.x.x. + #define LGFX_USE_QSPI #endif - #define LGFX_USE_QSPI #endif namespace lgfx