comparison src/customview.asm @ 413:12e85930d95c

NEW: New Customview shows ppO2(O2) and ppO2(Diluent) during CCR mode
author heinrichsweikamp
date Tue, 22 Mar 2016 16:39:00 +0100
parents e99bb91f6f92
children 881399cf0f5b
comparison
equal deleted inserted replaced
412:e8a1486815d9 413:12e85930d95c
46 bra customview_1sec_view7 46 bra customview_1sec_view7
47 dcfsnz WREG,F 47 dcfsnz WREG,F
48 bra customview_1sec_view8 48 bra customview_1sec_view8
49 dcfsnz WREG,F 49 dcfsnz WREG,F
50 bra customview_1sec_view9 ; Make sure to change value in "check_ppo2_display:" when moving around custom views 50 bra customview_1sec_view9 ; Make sure to change value in "check_ppo2_display:" when moving around custom views
51 dcfsnz WREG,F
52 bra customview_1sec_view10
51 ; Menupos3=0, do nothing 53 ; Menupos3=0, do nothing
52 return 54 return
53 55
54 customview_1sec_view3: 56 customview_1sec_view3:
55 call TFT_decoplan ; Show decoplan 57 call TFT_decoplan ; Show decoplan
85 extern char_I_deco_model 87 extern char_I_deco_model
86 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF 88 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF
87 return ; No GF info for non-GF modes 89 return ; No GF info for non-GF modes
88 call TFT_gf_info ; Update GF informations 90 call TFT_gf_info ; Update GF informations
89 91
92 return
93
94 customview_1sec_view10: ; Sensor check
95 call TFT_sensor_check ; Show ppO2 of O2 and Diluent
90 return 96 return
91 97
92 98
93 ;============================================================================= 99 ;=============================================================================
94 ; Do every-minute tasks for the custom view area 100 ; Do every-minute tasks for the custom view area
366 ; Show next customview (and delete this flag) 372 ; Show next customview (and delete this flag)
367 global customview_toggle 373 global customview_toggle
368 customview_toggle: 374 customview_toggle:
369 bcf switch_right 375 bcf switch_right
370 incf menupos3,F ; Number of customview to show 376 incf menupos3,F ; Number of customview to show
371 movlw d'9' ; Max number of customsviews in divemode 377 movlw d'10' ; Max number of customsviews in divemode
372 cpfsgt menupos3 ; Max reached? 378 cpfsgt menupos3 ; Max reached?
373 bra customview_mask ; No, show 379 bra customview_mask ; No, show
374 customview_toggle_reset: ; Timeout occured 380 customview_toggle_reset: ; Timeout occured
375 clrf menupos3 ; Reset to zero (Zero=no custom view) 381 clrf menupos3 ; Reset to zero (Zero=no custom view)
376 global customview_mask 382 global customview_mask
396 bra customview_init_view7 ; Dynamic gaslist 402 bra customview_init_view7 ; Dynamic gaslist
397 dcfsnz WREG,F 403 dcfsnz WREG,F
398 bra customview_init_view8 ; HUD voltages 404 bra customview_init_view8 ; HUD voltages
399 dcfsnz WREG,F 405 dcfsnz WREG,F
400 bra customview_init_view9 ; Ceiling 406 bra customview_init_view9 ; Ceiling
407 dcfsnz WREG,F
408 bra customview_init_view10 ; Sensor check
401 customview_init_nocustomview: 409 customview_init_nocustomview:
402 call I2C_sleep_accelerometer ; Stop accelerometer 410 call I2C_sleep_accelerometer ; Stop accelerometer
403 call I2C_sleep_compass ; Stop compass 411 call I2C_sleep_compass ; Stop compass
404 bra customview_toggle_exit 412 bra customview_toggle_exit
405 413
499 extern char_I_deco_model 507 extern char_I_deco_model
500 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF 508 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF
501 bra customview_toggle_exit ; No GF info for non-GF modes 509 bra customview_toggle_exit ; No GF info for non-GF modes
502 call TFT_gf_mask_cGF ; Setup Mask - current GF only 510 call TFT_gf_mask_cGF ; Setup Mask - current GF only
503 call TFT_gf_info ; Show GF informations 511 call TFT_gf_info ; Show GF informations
504 512 bra customview_toggle_exit
505 bra customview_toggle_exit 513
506 514 customview_init_view10: ; Sensor check
515 btfsc FLAG_apnoe_mode ; In Apnoe mode?
516 bra customview_toggle ; yes, Call next view...
517 btfsc FLAG_gauge_mode ; In Gauge mode?
518 bra customview_toggle ; Yes, Call next view...
519
520 call TFT_sensor_check_mask ; Show ppO2 of O2 and Diluent mask
521 call TFT_sensor_check ; Show ppO2 of O2 and Diluent
522 bra customview_toggle_exit
507 523
508 customview_toggle_exit: 524 customview_toggle_exit:
509 call TFT_standard_color 525 call TFT_standard_color
510 bcf toggle_customview ; Clear flag 526 bcf toggle_customview ; Clear flag
511 return 527 return