128 chan monitor (#7418)

Introduce 128x64 channels monitor
This commit is contained in:
3djc
2020-03-10 17:17:59 +01:00
committed by GitHub
parent ad188aa916
commit cf5e2b3fd5
17 changed files with 338 additions and 276 deletions
-2
View File
@@ -111,8 +111,6 @@ void lcdDrawText(coord_t x, coord_t y, const char * s);
void lcdDrawSizedText(coord_t x, coord_t y, const char * s, unsigned char len);
void lcdDrawTextAlignedLeft(coord_t y, const char * s);
#define lcdDrawTextAlignedCenter(y, s) lcdDrawText((LCD_W-sizeof(s)*FW+FW+1)/2, y, s)
void lcdDrawHexNumber(coord_t x, coord_t y, uint32_t val, LcdFlags mode=0);
void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags mode, uint8_t len);
void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags mode=0);
+1 -1
View File
@@ -80,7 +80,7 @@ void menuModelFailsafe(event_t event)
}
}
lcdDrawTextAlignedCenter(0, TR_FAILSAFESET);
lcdDrawText(LCD_W / 2, 0, STR_FAILSAFESET, CENTERED);
lcdInvertLine(0);
coord_t x = colW;
+1 -1
View File
@@ -202,7 +202,7 @@ void menuFirstCalib(event_t event)
chainMenu(menuMainView);
}
else {
lcdDrawTextAlignedCenter(0*FH, TR_MENUCALIBRATION);
lcdDrawText(LCD_W / 2, 0, STR_MENUCALIBRATION, CENTERED);
lcdInvertLine(0);
menuCommonCalib(event);
}
+1 -5
View File
@@ -61,11 +61,7 @@ void menuChannelsView(event_t event)
else if (g_model.extendedLimits)
limits *= LIMIT_EXT_PERCENT / 100;
if (reusableBuffer.viewChannels.mixersView)
lcdDrawTextAlignedCenter(0, TR_MIXERS_MONITOR);
else
lcdDrawTextAlignedCenter(0, TR_CHANNELS_MONITOR);
lcdDrawText(LCD_W / 2, 0, reusableBuffer.viewChannels.mixersView ? STR_MIXERS_MONITOR : STR_CHANNELS_MONITOR, CENTERED);
lcdInvertLine(0);
// Column separator