sforkowany z mirror/meshtastic-firmware
fix LCD build for devboard
rodzic
60ad1793e4
commit
e9923ac257
|
@ -36,15 +36,18 @@ 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()
|
||||||
|
{
|
||||||
|
// PCD8544-compatible displays may have a different resolution...
|
||||||
|
lcd.begin();
|
||||||
|
|
||||||
void testLCD() {
|
// Write a piece of text on the first line...
|
||||||
// PCD8544-compatible displays may have a different resolution...
|
lcd.setCursor(0, 0);
|
||||||
lcd.begin();
|
lcd.print("Hello, World!");
|
||||||
|
}
|
||||||
// Write a piece of text on the first line...
|
#endif
|
||||||
lcd.setCursor(0, 0);
|
|
||||||
lcd.print("Hello, World!");
|
|
||||||
}
|
|
Ładowanie…
Reference in New Issue