|
|
|
@@ -101,7 +101,7 @@ static uint16_t displayWidth, displayHeight;
|
|
|
|
|
#define SCREEN_WIDTH displayWidth
|
|
|
|
|
#define SCREEN_HEIGHT displayHeight
|
|
|
|
|
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS)
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS) || defined(USE_ST7789)
|
|
|
|
|
// The screen is bigger so use bigger fonts
|
|
|
|
|
#define FONT_SMALL ArialMT_Plain_16 // Height: 19
|
|
|
|
|
#define FONT_MEDIUM ArialMT_Plain_24 // Height: 28
|
|
|
|
@@ -491,7 +491,7 @@ static void drawNodes(OLEDDisplay *display, int16_t x, int16_t y, NodeStatus *no
|
|
|
|
|
{
|
|
|
|
|
char usersString[20];
|
|
|
|
|
snprintf(usersString, sizeof(usersString), "%d/%d", nodeStatus->getNumOnline(), nodeStatus->getNumTotal());
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS)
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS) || defined(USE_ST7789)
|
|
|
|
|
display->drawFastImage(x, y + 3, 8, 8, imgUser);
|
|
|
|
|
#else
|
|
|
|
|
display->drawFastImage(x, y, 8, 8, imgUser);
|
|
|
|
@@ -1487,7 +1487,7 @@ void DebugInfo::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|
|
|
|
#ifdef ARCH_ESP32
|
|
|
|
|
if (millis() - storeForwardModule->lastHeartbeat >
|
|
|
|
|
(storeForwardModule->heartbeatInterval * 1200)) { // no heartbeat, overlap a bit
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS)
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS) || defined(USE_ST7789)
|
|
|
|
|
display->drawFastImage(x + SCREEN_WIDTH - 14 - display->getStringWidth(ourId), y + 3 + FONT_HEIGHT_SMALL, 12, 8,
|
|
|
|
|
imgQuestionL1);
|
|
|
|
|
display->drawFastImage(x + SCREEN_WIDTH - 14 - display->getStringWidth(ourId), y + 11 + FONT_HEIGHT_SMALL, 12, 8,
|
|
|
|
@@ -1497,7 +1497,7 @@ void DebugInfo::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|
|
|
|
imgQuestion);
|
|
|
|
|
#endif
|
|
|
|
|
} else {
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS)
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS) || defined(USE_ST7789)
|
|
|
|
|
display->drawFastImage(x + SCREEN_WIDTH - 18 - display->getStringWidth(ourId), y + 3 + FONT_HEIGHT_SMALL, 16, 8,
|
|
|
|
|
imgSFL1);
|
|
|
|
|
display->drawFastImage(x + SCREEN_WIDTH - 18 - display->getStringWidth(ourId), y + 11 + FONT_HEIGHT_SMALL, 16, 8,
|
|
|
|
@@ -1509,7 +1509,7 @@ void DebugInfo::drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
} else {
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS)
|
|
|
|
|
#if defined(USE_EINK) || defined(ILI9341_DRIVER) || defined(ST7735_CS) || defined(USE_ST7789)
|
|
|
|
|
display->drawFastImage(x + SCREEN_WIDTH - 14 - display->getStringWidth(ourId), y + 3 + FONT_HEIGHT_SMALL, 12, 8,
|
|
|
|
|
imgInfoL1);
|
|
|
|
|
display->drawFastImage(x + SCREEN_WIDTH - 14 - display->getStringWidth(ourId), y + 11 + FONT_HEIGHT_SMALL, 12, 8,
|
|
|
|
|