display.cpp: check display type setting
This commit is contained in:
parent
014bae059e
commit
46cc027ee4
@ -49,10 +49,14 @@ static int dp_row = 0, dp_col = 0, dp_font = 0;
|
|||||||
|
|
||||||
QRCode qrcode;
|
QRCode qrcode;
|
||||||
|
|
||||||
|
#ifdef HAS_DISPLAY
|
||||||
#if (HAS_DISPLAY) == 1
|
#if (HAS_DISPLAY) == 1
|
||||||
OBDISP ssoled;
|
OBDISP ssoled;
|
||||||
#elif (HAS_DISPLAY) == 2
|
#elif (HAS_DISPLAY) == 2
|
||||||
TFT_eSPI tft = TFT_eSPI();
|
TFT_eSPI tft = TFT_eSPI();
|
||||||
|
#else
|
||||||
|
#error Unknown display type specified in hal file
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void dp_setup(int contrast) {
|
void dp_setup(int contrast) {
|
||||||
|
Loading…
Reference in New Issue
Block a user