Mercurial > public > hwos_code
comparison src/customview.asm @ 482:c0ee33f1f399
New customview #12 for PSCR mode shows ppO2, O2 drop and lung ratio
author | heinrichsweikamp |
---|---|
date | Tue, 07 Feb 2017 12:15:12 +0100 |
parents | 7c10557c248e |
children | 18e047102e49 |
comparison
equal
deleted
inserted
replaced
481:3e643ec05dac | 482:c0ee33f1f399 |
---|---|
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 | 51 dcfsnz WREG,F |
52 goto TFT_sensor_check ; Show ppO2 of O2 and Diluent ; and return | 52 goto TFT_sensor_check ; Show ppO2 of O2 and Diluent ; and return |
53 dcfsnz WREG,F | 53 dcfsnz WREG,F |
54 goto TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS; and return | 54 goto TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS; and return |
55 dcfsnz WREG,F | |
56 goto TFT_pscr_info ; Show ppO2, drop and lung ratio; and return | |
57 | |
55 ; Menupos3=0, do nothing | 58 ; Menupos3=0, do nothing |
56 return | 59 return |
57 | 60 |
58 customview_1sec_view9: ; Ceiling | 61 customview_1sec_view9: ; Ceiling |
59 call TFT_ceiling ; Show Ceiling | 62 call TFT_ceiling ; Show Ceiling |
343 ; Show next customview (and delete this flag) | 346 ; Show next customview (and delete this flag) |
344 global customview_toggle | 347 global customview_toggle |
345 customview_toggle: | 348 customview_toggle: |
346 bcf switch_right | 349 bcf switch_right |
347 incf menupos3,F ; Number of customview to show | 350 incf menupos3,F ; Number of customview to show |
348 movlw d'11' ; Max number of customsviews in divemode | 351 movlw d'12' ; Max number of customsviews in divemode |
349 cpfsgt menupos3 ; Max reached? | 352 cpfsgt menupos3 ; Max reached? |
350 bra customview_mask ; No, show | 353 bra customview_mask ; No, show |
351 customview_toggle_reset: ; Timeout occured | 354 customview_toggle_reset: ; Timeout occured |
352 clrf menupos3 ; Reset to zero (Zero=no custom view) | 355 clrf menupos3 ; Reset to zero (Zero=no custom view) |
353 global customview_mask | 356 global customview_mask |
377 bra customview_init_view9 ; ppO2, Ceiling and current GF | 380 bra customview_init_view9 ; ppO2, Ceiling and current GF |
378 dcfsnz WREG,F | 381 dcfsnz WREG,F |
379 bra customview_init_view10 ; Sensor check | 382 bra customview_init_view10 ; Sensor check |
380 dcfsnz WREG,F | 383 dcfsnz WREG,F |
381 bra customview_init_view11 ; ppO2, END/EAD and CNS | 384 bra customview_init_view11 ; ppO2, END/EAD and CNS |
385 dcfsnz WREG,F | |
386 bra customview_init_view12 ; PSCR Info | |
382 | 387 |
383 customview_init_nocustomview: | 388 customview_init_nocustomview: |
384 call I2C_sleep_accelerometer ; Stop accelerometer | 389 call I2C_sleep_accelerometer ; Stop accelerometer |
385 call I2C_sleep_compass ; Stop compass | 390 call I2C_sleep_compass ; Stop compass |
386 bra customview_toggle_exit | 391 bra customview_toggle_exit |
513 btfsc FLAG_gauge_mode ; In Gauge mode? | 518 btfsc FLAG_gauge_mode ; In Gauge mode? |
514 bra customview_toggle ; Yes, Call next view... | 519 bra customview_toggle ; Yes, Call next view... |
515 | 520 |
516 call TFT_ppo2_ead_end_cns_mask ; Show ppO2, END/EAD and CNS mask | 521 call TFT_ppo2_ead_end_cns_mask ; Show ppO2, END/EAD and CNS mask |
517 call TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS | 522 call TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS |
523 bra customview_toggle_exit | |
524 | |
525 customview_init_view12: ; PSCR Info | |
526 btfss FLAG_pscr_mode ; In PSCR mode? | |
527 bra customview_toggle ; No, Call next view... | |
528 | |
529 call TFT_pscr_info_mask ; Show ppO2, drop and lung ratio | |
530 call TFT_pscr_info ; Show ppO2, drop and lung ratio | |
518 bra customview_toggle_exit | 531 bra customview_toggle_exit |
519 | 532 |
520 customview_toggle_exit: | 533 customview_toggle_exit: |
521 call TFT_standard_color | 534 call TFT_standard_color |
522 bcf toggle_customview ; Clear flag | 535 bcf toggle_customview ; Clear flag |