Mercurial > public > ostc4
comparison Discovery/Inc/tMenuEdit.h @ 718:b9f699d2e3d0
Updated menu structure to support new sensor information page:
The sensor information page has been added to the sensor submenu of the hardware menu. It will be shown dynamically in case a smart sensor is detected. In order to have this dynamic visualization some new functions had to be added to the general menu file. The information page returns to the sensor menu, for this behavior also a new function had to be added.
author | Ideenmodellierer |
---|---|
date | Sun, 20 Nov 2022 20:49:41 +0100 |
parents | 830de438e0b0 |
children | 45b8f3c2acce |
comparison
equal
deleted
inserted
replaced
717:88f73b05d45c | 718:b9f699d2e3d0 |
---|---|
30 | 30 |
31 /* Includes ------------------------------------------------------------------*/ | 31 /* Includes ------------------------------------------------------------------*/ |
32 #include "tMenu.h" | 32 #include "tMenu.h" |
33 | 33 |
34 #define ME_Y_LINE1 (70) | 34 #define ME_Y_LINE1 (70) |
35 #define ME_Y_LINE_STEP (65) | 35 #define ME_Y_LINE_STEP (65) |
36 #define ME_Y_LINE_BASE (ME_Y_LINE1 - ME_Y_LINE_STEP) | 36 #define ME_Y_LINE_BASE (ME_Y_LINE1 - ME_Y_LINE_STEP) |
37 #define ME_Y_LINE2 (ME_Y_LINE1 + (1 * ME_Y_LINE_STEP)) | 37 #define ME_Y_LINE2 (ME_Y_LINE1 + (1 * ME_Y_LINE_STEP)) |
38 #define ME_Y_LINE3 (ME_Y_LINE1 + (2 * ME_Y_LINE_STEP)) | 38 #define ME_Y_LINE3 (ME_Y_LINE1 + (2 * ME_Y_LINE_STEP)) |
39 #define ME_Y_LINE4 (ME_Y_LINE1 + (3 * ME_Y_LINE_STEP)) | 39 #define ME_Y_LINE4 (ME_Y_LINE1 + (3 * ME_Y_LINE_STEP)) |
40 #define ME_Y_LINE5 (ME_Y_LINE1 + (4 * ME_Y_LINE_STEP)) | 40 #define ME_Y_LINE5 (ME_Y_LINE1 + (4 * ME_Y_LINE_STEP)) |
41 #define ME_Y_LINE6 (ME_Y_LINE1 + (5 * ME_Y_LINE_STEP)) | 41 #define ME_Y_LINE6 (ME_Y_LINE1 + (5 * ME_Y_LINE_STEP)) |
42 | 42 |
43 #define EXIT_TO_INFO_SENSOR (247) | |
43 #define EXIT_TO_INFO_COMPASS (248) | 44 #define EXIT_TO_INFO_COMPASS (248) |
44 #define EXIT_TO_MENU_WITH_LOGO (249) | 45 #define EXIT_TO_MENU_WITH_LOGO (249) |
45 #define EXIT_TO_HOME (250) | 46 #define EXIT_TO_HOME (250) |
46 #define EXIT_TO_MENU (251) | 47 #define EXIT_TO_MENU (251) |
47 #define UPDATE_DIVESETTINGS (252) | 48 #define UPDATE_DIVESETTINGS (252) |
48 #define UPDATE_AND_EXIT_TO_HOME (253) | 49 #define UPDATE_AND_EXIT_TO_HOME (253) |
49 #define UPDATE_AND_EXIT_TO_MENU (255) | 50 #define UPDATE_AND_EXIT_TO_MENU (255) |
50 #define UNSPECIFIC_RETURN (254) | 51 #define UNSPECIFIC_RETURN (254) |
51 | 52 |
52 void sendActionToMenuEdit(uint8_t sendAction); | 53 void sendActionToMenuEdit(uint8_t sendAction); |
53 | 54 |
54 void tMenuEdit_init(void); | 55 void tMenuEdit_init(void); |
55 void resetMenuEdit(uint8_t color); | 56 void resetMenuEdit(uint8_t color); |