Start touch test screen

This commit is contained in:
3djc
2020-04-03 10:13:27 +02:00
parent 861f860710
commit ac229acdff
14 changed files with 23 additions and 1 deletions
+10 -1
View File
@@ -131,6 +131,12 @@ void onHardwareAntennaSwitchConfirm(const char * result)
#define SPORT_POWER_ROWS
#endif
#if defined(HARDWARE_TOUCH)
#define DEBUG_ROW 2
#else
#define DEBUG_ROW 1
#endif
bool menuRadioHardware(event_t event)
{
MENU(STR_HARDWARE, RADIO_ICONS, menuTabGeneral, MENU_RADIO_HARDWARE, ITEM_RADIO_HARDWARE_MAX, {
@@ -162,7 +168,7 @@ bool menuRadioHardware(event_t event)
0, /* ADC filter */
READONLY_ROW /* RAS */,
SPORT_POWER_ROWS
1, /* Debug */
DEBUG_ROW, /* Debug */
});
if (menuEvent) {
@@ -411,6 +417,9 @@ bool menuRadioHardware(event_t event)
lcdDrawText(MENUS_MARGIN_LEFT, y, STR_DEBUG);
lcdDrawText(HW_SETTINGS_COLUMN2, y, STR_ANALOGS_BTN, menuHorizontalPosition == 0 ? attr : 0);
lcdDrawText(lcdNextPos + 10, y, STR_KEYS_BTN, menuHorizontalPosition == 1 ? attr : 0);
#if defined(HARDWARE_TOUCH)
lcdDrawText(lcdNextPos + 10, y, STR_KEYS_BTN, menuHorizontalPosition == 2 ? attr : 0);
#endif
if (attr && event == EVT_KEY_BREAK(KEY_ENTER)) {
if (menuHorizontalPosition == 0)
pushMenu(menuRadioDiagAnalogs);
+1
View File
@@ -315,6 +315,7 @@ const char STR_MONITOR_SCREENS[] = TR_MONITOR_SCREENS;
const char STR_RESET_BTN[] = TR_RESET_BTN;
const char STR_DEBUG[] = TR_DEBUG;
const char STR_KEYS_BTN[] = TR_KEYS_BTN;
const char STR_TOUCH_BTN[] = TR_TOUCH_BTN;
const char STR_ANALOGS_BTN[] = TR_ANALOGS_BTN;
const char STR_CALIBRATION[] = TR_CALIBRATION;
const char STR_NO_TOOLS[] = TR_NO_TOOLS;
+1
View File
@@ -493,6 +493,7 @@ extern const char STR_MONITOR_SCREENS[];
extern const char STR_RESET_BTN[];
extern const char STR_DEBUG[];
extern const char STR_KEYS_BTN[];
extern const char STR_TOUCH_BTN[];
extern const char STR_ANALOGS_BTN[];
extern const char STR_CALIBRATION[];
extern const char STR_NO_TOOLS[];
+1
View File
@@ -912,6 +912,7 @@
#define TR_RESET_BTN BUTTON("Reset")
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Přepínače"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogy"))
#define TR_CALIBRATION "Kalibrace"
#define TR_SET BUTTON("Nast")
+1
View File
@@ -914,6 +914,7 @@
#define TR_RESET_BTN BUTTON("Reset")
#define TR_DEBUG "Testen"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Kalibrieren"
#define TR_SET BUTTON("Set")
+1
View File
@@ -913,6 +913,7 @@
#define TR_RESET_BTN BUTTON("Reset")
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("Keys", "Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Anas", "Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET BUTTON("Set")
+1
View File
@@ -933,6 +933,7 @@
#define TR_RESET_BTN "[Reset]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Calibracion"
#define TR_SET "[Ajuste]"
+1
View File
@@ -931,6 +931,7 @@
#define TR_RESET_BTN "[Reset]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET "[Set]"
+1
View File
@@ -933,6 +933,7 @@
#define TR_RESET_BTN BUTTON("RAZ")
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("Btns","Inters"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Anas", "Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET BUTTON("Déf")
+1
View File
@@ -933,6 +933,7 @@
#define TR_RESET_BTN "[Reset]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Interruttori"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analogico","Analogici"))
#define TR_CALIBRATION TR("Calibraz.", "Calibrazione")
#define TR_SET "[Set]"
+1
View File
@@ -919,6 +919,7 @@
#define TR_RESET_BTN "[Reset]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET "[Set]"
+1
View File
@@ -932,6 +932,7 @@
#define TR_RESET_BTN "[Reset]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET "[Set]"
+1
View File
@@ -922,6 +922,7 @@
#define TR_RESET_BTN "[Reset]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET "[Set]"
+1
View File
@@ -932,6 +932,7 @@
#define TR_RESET_BTN "[Nollställ]"
#define TR_DEBUG "Debug"
#define TR_KEYS_BTN BUTTON(TR("SW","Switches"))
#define TR_TOUCH_BTN BUTTON("Touch")
#define TR_ANALOGS_BTN BUTTON(TR("Analog","Analogs"))
#define TR_CALIBRATION "Calibration"
#define TR_SET "[Spara]"