Skip to content

Commit

Permalink
limit QSPI to esp32 + idf version >= 5.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tobozo committed Aug 20, 2024
1 parent 104ab4c commit b343c84
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/lgfx/v1/panel/Panel_SH8601Z.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -594,3 +597,6 @@ namespace lgfx
//----------------------------------------------------------------------------
}
}


#endif
4 changes: 4 additions & 0 deletions src/lgfx/v1/panel/Panel_SH8601Z.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* /----------------------------------------------------------------------------*/
#pragma once

#if defined (ESP_PLATFORM)

#include "Panel_Device.hpp"

namespace lgfx
Expand Down Expand Up @@ -71,3 +73,5 @@ namespace lgfx
//----------------------------------------------------------------------------
}
}

#endif
3 changes: 2 additions & 1 deletion src/lgfx/v1/platforms/esp32/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b343c84

Please sign in to comment.