From e9923ac25732f8b0c2530816318bb672e0cf3e08 Mon Sep 17 00:00:00 2001 From: geeksville Date: Tue, 16 Jun 2020 06:26:34 -0700 Subject: [PATCH] fix LCD build for devboard --- src/nrf52/UC1701Spi.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/nrf52/UC1701Spi.cpp b/src/nrf52/UC1701Spi.cpp index d653b645..dcb6435c 100644 --- a/src/nrf52/UC1701Spi.cpp +++ b/src/nrf52/UC1701Spi.cpp @@ -36,15 +36,18 @@ class UC1701Spi : public OLEDDisplay }; #include "variant.h" + +#ifdef ERC12864_CS #include static UC1701 lcd(PIN_SPI_SCK, PIN_SPI_MOSI, ERC12864_CS, ERC12864_CD); +void testLCD() +{ + // PCD8544-compatible displays may have a different resolution... + lcd.begin(); -void testLCD() { - // PCD8544-compatible displays may have a different resolution... - lcd.begin(); - - // Write a piece of text on the first line... - lcd.setCursor(0, 0); - lcd.print("Hello, World!"); -} \ No newline at end of file + // Write a piece of text on the first line... + lcd.setCursor(0, 0); + lcd.print("Hello, World!"); +} +#endif \ No newline at end of file