Mercurial > public > ostc4
diff Discovery/Src/t3.c @ 553:43a2dd4ba30f
Added color indicator for focus state:
Some lines in T7 and T3 screen will turn blue in case the OSTC detects a potential view of the diver. During focus state motion events are evaluated and proceeded.
author | Ideenmodellierer |
---|---|
date | Sun, 08 Nov 2020 18:49:54 +0100 |
parents | 6960df7ddb09 |
children | 5e0a75e2f00b |
line wrap: on
line diff
--- a/Discovery/Src/t3.c Sun Nov 08 18:46:46 2020 +0100 +++ b/Discovery/Src/t3.c Sun Nov 08 18:49:54 2020 +0100 @@ -36,6 +36,7 @@ #include "tHome.h" #include "timer.h" #include "unit.h" +#include "motion.h" //* Imported function prototypes ---------------------------------------------*/ extern uint8_t write_gas(char *text, uint8_t oxygen, uint8_t helium); @@ -226,13 +227,28 @@ start.x = 0; stop.x = 799; stop.y = start.y = BigFontSeperationTopBottom; - GFX_draw_line(tXscreen, start, stop, CLUT_Font020); + if(viewInFocus()) + { + GFX_draw_line(tXscreen, start, stop, CLUT_Font023); + } + else + { + GFX_draw_line(tXscreen, start, stop, CLUT_Font020); + } + start.y = BigFontSeperationTopBottom; stop.y = 479; stop.x = start.x = BigFontSeperationLeftRight; - GFX_draw_line(tXscreen, start, stop, CLUT_Font020); + if(viewInFocus()) + { + GFX_draw_line(tXscreen, start, stop, CLUT_Font023); + } + else + { + GFX_draw_line(tXscreen, start, stop, CLUT_Font020); + } /* depth */ float depth = unit_depth_float(stateUsed->lifeData.depth_meter);