mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-25 22:20:27 +00:00
fix LCD build for devboard
This commit is contained in:
parent
60ad1793e4
commit
e9923ac257
@ -36,11 +36,13 @@ class UC1701Spi : public OLEDDisplay
|
|||||||
};
|
};
|
||||||
|
|
||||||
#include "variant.h"
|
#include "variant.h"
|
||||||
|
|
||||||
|
#ifdef ERC12864_CS
|
||||||
#include <UC1701.h>
|
#include <UC1701.h>
|
||||||
static UC1701 lcd(PIN_SPI_SCK, PIN_SPI_MOSI, ERC12864_CS, ERC12864_CD);
|
static UC1701 lcd(PIN_SPI_SCK, PIN_SPI_MOSI, ERC12864_CS, ERC12864_CD);
|
||||||
|
|
||||||
|
void testLCD()
|
||||||
void testLCD() {
|
{
|
||||||
// PCD8544-compatible displays may have a different resolution...
|
// PCD8544-compatible displays may have a different resolution...
|
||||||
lcd.begin();
|
lcd.begin();
|
||||||
|
|
||||||
@ -48,3 +50,4 @@ void testLCD() {
|
|||||||
lcd.setCursor(0, 0);
|
lcd.setCursor(0, 0);
|
||||||
lcd.print("Hello, World!");
|
lcd.print("Hello, World!");
|
||||||
}
|
}
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user