comparison Discovery/Inc/t3.h @ 758:b6d8a6fbf4fd

- Colours for scrubber display when time remaining falls below a threshold value - Display negative values when time is up and diving continues; - count down remaining scrubber time only when the dive computer is not set to bailout - after all, there is not much point in counting down time if the diver is not breathing through the scrubber.
author heinrichsweikamp
date Wed, 15 Mar 2023 09:18:07 +0100
parents f52bc70e380f
children 717b460294cd
comparison
equal deleted inserted replaced
757:39ff186b6f98 758:b6d8a6fbf4fd
29 #define T3_H 29 #define T3_H
30 30
31 /* Includes ------------------------------------------------------------------*/ 31 /* Includes ------------------------------------------------------------------*/
32 #include "stm32f4xx_hal.h" 32 #include "stm32f4xx_hal.h"
33 #include "gfx_engine.h" 33 #include "gfx_engine.h"
34 #include "settings.h"
34 35
35 /* Exported functions --------------------------------------------------------*/ 36 /* Exported functions --------------------------------------------------------*/
36 void t3_init(void); 37 void t3_init(void);
37 void t3_refresh(void); 38 void t3_refresh(void);
38 void t3_select_customview(uint8_t selectedCustomview); 39 void t3_select_customview(uint8_t selectedCustomview);
40 uint8_t t3_GetEnabled_customviews(void); 41 uint8_t t3_GetEnabled_customviews(void);
41 uint8_t t3_getCustomView(void); 42 uint8_t t3_getCustomView(void);
42 void t3_set_customview_to_primary(void); 43 void t3_set_customview_to_primary(void);
43 uint8_t t3_customview_disabled(uint8_t view); 44 uint8_t t3_customview_disabled(uint8_t view);
44 45
46 int printScrubberText(char *text, size_t size, SSettings *settings);
47
45 #endif /* T3_H */ 48 #endif /* T3_H */