comparison src/customview.asm @ 472:4fdf6886004b

CHANGE: Show warnings either in Customview (If active) _or_ next to warning sign NEW: Show battery type in information menu (T0:1.5V AA, T1:3.6V AA, T2:3.6V/0.8A LiIon, T3:Internal 18650, T4:Internal 16650)
author heinrichsweikamp
date Sun, 18 Dec 2016 18:20:39 +0100
parents 9edb1359ce43
children 7c10557c248e
comparison
equal deleted inserted replaced
471:9edb1359ce43 472:4fdf6886004b
27 ;============================================================================= 27 ;=============================================================================
28 ; Do every-second tasks for the custom view area (Dive mode) 28 ; Do every-second tasks for the custom view area (Dive mode)
29 29
30 global customview_second 30 global customview_second
31 customview_second: 31 customview_second:
32 movff menupos3,WREG ; copy 32 movff menupos3,WREG ; copy current view (1-...)
33 dcfsnz WREG,F 33 dcfsnz WREG,F
34 goto TFT_update_ppo2_sensors ; Update Sensor data ; and return; bra customview_1sec_view1 34 goto TFT_update_ppo2_sensors ; Update Sensor data ; and return
35 dcfsnz WREG,F 35 dcfsnz WREG,F
36 goto TFT_update_avr_stopwatch ; Update average depth and stopwatch; and return ;bra customview_1sec_view2 36 goto TFT_update_avr_stopwatch ; Update average depth and stopwatch; and return
37 dcfsnz WREG,F 37 dcfsnz WREG,F
38 goto TFT_decoplan ; Show decoplan ; and return; bra customview_1sec_view3 38 goto TFT_decoplan ; Show decoplan ; and return
39 dcfsnz WREG,F 39 dcfsnz WREG,F
40 goto TFT_battinfo_tissues_clock ; Update EAD/END, Tissues and clock ; and return; bra customview_1sec_view4 40 goto TFT_battinfo_tissues_clock ; Update Battery, Tissues and clock ; and return
41 dcfsnz WREG,F 41 dcfsnz WREG,F
42 goto TFT_gf_info ; Update GF informations ; and return bra customview_1sec_view5 42 goto TFT_gf_info ; Update GF informations ; and return
43 dcfsnz WREG,F 43 dcfsnz WREG,F
44 return ; Compass updated seperately (Faster) in divemode; bra customview_1sec_view6 44 return ; Compass updated seperately (Faster) in divemode;
45 dcfsnz WREG,F 45 dcfsnz WREG,F
46 goto TFT_dyn_gaslist ; Update the gaslist ; and return bra customview_1sec_view7 46 goto TFT_dyn_gaslist ; Update the gaslist ; and return
47 dcfsnz WREG,F 47 dcfsnz WREG,F
48 goto TFT_hud_voltages ; Show HUD details ; and return bra customview_1sec_view8 48 goto TFT_hud_voltages ; Show HUD details ; and return
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 51 dcfsnz WREG,F
52 goto TFT_sensor_check ; Show ppO2 of O2 and Diluent ; and return bra customview_1sec_view10 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 54 goto TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS; and return
55 ; Menupos3=0, do nothing 55 ; Menupos3=0, do nothing
56 return 56 return
57 57
58 ;customview_1sec_view3:
59 ; goto TFT_decoplan ; Show decoplan ; and return
60 ;customview_1sec_view2:
61 ; goto TFT_update_avr_stopwatch ; Update average depth and stopwatch; and return
62 ;customview_1sec_view1:
63 ; goto TFT_update_ppo2_sensors ; Update Sensor data ; and return
64 ;customview_1sec_view4:
65 ; goto TFT_battinfo_tissues_clock ; Update EAD/END, Tissues and clock ; and return
66 ;customview_1sec_view5:
67 ; goto TFT_gf_info ; Update GF informations ; and return
68 ;customview_1sec_view6:
69 ; return ; Compass updated seperately (Faster) in divemode
70 ;
71 ;customview_1sec_view7: ; Dynamic gaslist
72 ; goto TFT_dyn_gaslist ; Update the gaslist ; and return
73 ;customview_1sec_view8: ; Sensor voltages
74 ; goto TFT_hud_voltages ; Show HUD details ; and return
75 customview_1sec_view9: ; Ceiling 58 customview_1sec_view9: ; Ceiling
76 call TFT_ceiling ; Show Ceiling 59 call TFT_ceiling ; Show Ceiling
77
78 ; ppO2 value 60 ; ppO2 value
79 call TFT_display_ppo2_val 61 call TFT_display_ppo2_val
80
81 ; current GF value 62 ; current GF value
82 extern char_I_deco_model 63 extern char_I_deco_model
83 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF 64 TSTOSS char_I_deco_model ; 0 = ZH-L16, 1 = ZH-L16-GF
84 return ; No GF info for non-GF modes 65 return ; No GF info for non-GF modes
85 goto TFT_gf_info ; Update GF informations ; and return 66 goto TFT_gf_info ; Update GF informations ; and return
86 67
87 ;customview_1sec_view10: ; Sensor check
88 ; goto TFT_sensor_check ; Show ppO2 of O2 and Diluent ; and return
89 68
90 69
91 ;============================================================================= 70 ;=============================================================================
92 ; Do every-minute tasks for the custom view area 71 ; Do every-minute tasks for the custom view area
93 72