Mercurial > public > hwos_code
diff src/customview.asm @ 123:d076e9c02438
add ceiling display
author | heinrichsweikamp |
---|---|
date | Sun, 29 Jun 2014 13:40:59 +0200 |
parents | 2acf3d068fae |
children | 4574aed5cd4c |
line wrap: on
line diff
--- a/src/customview.asm Fri Jun 27 16:55:49 2014 +0200 +++ b/src/customview.asm Sun Jun 29 13:40:59 2014 +0200 @@ -46,6 +46,8 @@ bra customview_1sec_view7 dcfsnz WREG,F bra customview_1sec_view8 + dcfsnz WREG,F + bra customview_1sec_view9 ; Menupos3=0, do nothing return @@ -73,6 +75,10 @@ customview_1sec_view8: ; Sensor voltages call TFT_hud_voltages ; Show HUD details return +customview_1sec_view9: ; Ceiling + call TFT_ceiling ; Show Ceiling + return + ;============================================================================= ; Do every-minute tasks for the custom view area @@ -296,7 +302,7 @@ customview_toggle: bcf switch_right incf menupos3,F ; Number of customview to show - movlw d'8' ; Max number of customsviews in divemode + movlw d'9' ; Max number of customsviews in divemode cpfsgt menupos3 ; Max reached? bra customview_mask ; No, show customview_toggle_reset: ; Timeout occured @@ -323,6 +329,8 @@ bra customview_init_view7 ; Dynamic gaslist dcfsnz WREG,F bra customview_init_view8 ; HUD voltages + dcfsnz WREG,F + bra customview_init_view9 ; Ceiling customview_init_nocustomview: call I2C_sleep_accelerometer ; Stop accelerometer call I2C_sleep_compass ; Stop compass @@ -402,6 +410,16 @@ call TFT_hud_voltages ; Show HUD details bra customview_toggle_exit +customview_init_view9: ; Ceiling + btfsc FLAG_apnoe_mode ; In Apnoe mode? + bra customview_toggle ; yes, Call next view... + btfsc FLAG_gauge_mode ; In Gauge mode? + bra customview_toggle ; Yes, Call next view... + call TFT_ceiling_mask ; Setup mask + call TFT_ceiling ; Show Ceiling + bra customview_toggle_exit + + customview_toggle_exit: call TFT_standard_color bcf toggle_customview ; Clear flag