[NV14] Fix ST7796S LCD controller detection and colors, show LCD controller type on version screen (#1294)

show LCD controller type on NV14 radio version screen
fix ST7796S LCD controller detection
fix ST7796S driven displays to show correct colors
fix NV14 lcd_driver.cpp compiler warning
This commit is contained in:
Malte Langermann
2021-12-26 10:17:30 +10:00
committed by GitHub
parent e51005af2a
commit a1e03ed7b5
2 changed files with 134 additions and 124 deletions
+10
View File
@@ -207,6 +207,10 @@ RadioVersionPage::RadioVersionPage():
}
extern uint32_t NV14internalModuleFwVersion;
#if defined(PCBNV14)
extern const char* boardLcdType;
#endif
void RadioVersionPage::build(FormWindow * window)
{
FormGridLayout grid;
@@ -238,6 +242,12 @@ void RadioVersionPage::build(FormWindow * window)
auto options = new OptionsText(window, grid.getFieldSlot(1,0));
grid.nextLine(options->height() + 4);
#if defined(PCBNV14) && !defined(SIMU)
new StaticText(window, grid.getLabelSlot(), "LCD:");
new StaticText(window, grid.getFieldSlot(), boardLcdType);
grid.nextLine();
#endif
#if defined(AFHDS2)
new StaticText(window, grid.getLabelSlot(), "RF FW:");
sprintf(reusableBuffer.moduleSetup.msg, "%d.%d.%d", (int)((NV14internalModuleFwVersion >> 16) & 0xFF), (int)((NV14internalModuleFwVersion >> 8) & 0xFF), (int)(NV14internalModuleFwVersion & 0xFF));