Skip to content

Commit

Permalink
Make native honor HAS_SCREEN 0 (#3509)
Browse files Browse the repository at this point in the history
This allows easier building of the native target without the LovyanGFX libraries.
  • Loading branch information
jp-bennett authored Mar 29, 2024
1 parent 7b391d1 commit 64fd866
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/graphics/TFTDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static LGFX *tft = nullptr;
#include <TFT_eSPI.h> // Graphics and font library for ILI9341 driver chip

static TFT_eSPI *tft = nullptr; // Invoke library, pins defined in User_Setup.h
#elif ARCH_PORTDUINO
#elif ARCH_PORTDUINO && HAS_SCREEN != 0
#include <LovyanGFX.hpp> // Graphics and font library for ST7735 driver chip

class LGFX : public lgfx::LGFX_Device
Expand Down Expand Up @@ -404,7 +404,8 @@ class LGFX : public lgfx::LGFX_Device
static LGFX *tft = nullptr;
#endif

#if defined(ST7735_CS) || defined(ST7789_CS) || defined(ILI9341_DRIVER) || defined(RAK14014) || ARCH_PORTDUINO
#if defined(ST7735_CS) || defined(ST7789_CS) || defined(ILI9341_DRIVER) || defined(RAK14014) || \
(ARCH_PORTDUINO && HAS_SCREEN != 0)
#include "SPILock.h"
#include "TFTDisplay.h"
#include <SPI.h>
Expand Down

0 comments on commit 64fd866

Please sign in to comment.