Mercurial > public > hwos_code
comparison src/customview.asm @ 41:5041477eee79
Surface customview with important deco settings
author | mh@mh-THINK |
---|---|
date | Thu, 15 Aug 2013 15:37:34 +0200 |
parents | e4e91fe8b09d |
children | 7c7d7644ca37 |
comparison
equal
deleted
inserted
replaced
40:1e2d2b0bca5b | 41:5041477eee79 |
---|---|
106 | 106 |
107 global surf_customview_toggle | 107 global surf_customview_toggle |
108 surf_customview_toggle: | 108 surf_customview_toggle: |
109 bcf switch_right | 109 bcf switch_right |
110 incf menupos3,F ; Number of customview to show | 110 incf menupos3,F ; Number of customview to show |
111 movlw d'6' ; Max number of customsviews in surface mode | 111 movlw d'7' ; Max number of customsviews in surface mode |
112 cpfsgt menupos3 ; Max reached? | 112 cpfsgt menupos3 ; Max reached? |
113 bra surf_customview_mask ; No, show | 113 bra surf_customview_mask ; No, show |
114 movlw .1 | 114 movlw .1 |
115 movwf menupos3 ; Reset to one (Always one custom view visible) | 115 movwf menupos3 ; Reset to one (Always one custom view visible) |
116 | 116 |
127 bra surf_customview_init_view3 ; CC SP list | 127 bra surf_customview_init_view3 ; CC SP list |
128 dcfsnz WREG,F | 128 dcfsnz WREG,F |
129 bra surf_customview_init_view4 ; Custom Text | 129 bra surf_customview_init_view4 ; Custom Text |
130 dcfsnz WREG,F | 130 dcfsnz WREG,F |
131 bra surf_customview_init_view5 ; Tissue Diagram | 131 bra surf_customview_init_view5 ; Tissue Diagram |
132 dcfsnz WREG,F | 132 dcfsnz WREG,F |
133 bra surf_customview_init_view6 ; Compass | 133 bra surf_customview_init_view6 ; Compass |
134 dcfsnz WREG,F | |
135 bra surf_customview_init_view7 ; Deco settings | |
134 | 136 |
135 call I2C_sleep_accelerometer ; Stop accelerometer | 137 call I2C_sleep_accelerometer ; Stop accelerometer |
136 call I2C_sleep_compass ; Stop compass | 138 call I2C_sleep_compass ; Stop compass |
137 | 139 |
138 movlw .1 | 140 movlw .1 |
183 surf_customview_init_view6: ; View6: Compass | 185 surf_customview_init_view6: ; View6: Compass |
184 call I2C_init_accelerometer ; Start accelerometer | 186 call I2C_init_accelerometer ; Start accelerometer |
185 call I2C_init_compass ; Start compass | 187 call I2C_init_compass ; Start compass |
186 call TFT_surface_compass_mask ; Show compass | 188 call TFT_surface_compass_mask ; Show compass |
187 bra customview_toggle_exit ; Done. | 189 bra customview_toggle_exit ; Done. |
188 | 190 surf_customview_init_view7: |
191 btfsc FLAG_gauge_mode | |
192 bra surf_customview_toggle | |
193 btfsc FLAG_apnoe_mode | |
194 bra surf_customview_toggle | |
195 extern deco_setup_dive | |
196 call deco_setup_dive | |
197 call TFT_surface_decosettings ; Show all deco settings | |
198 bra customview_toggle_exit ; Done. | |
189 | 199 |
190 global menuview_toggle | 200 global menuview_toggle |
191 menuview_toggle: ; Show Menu or the simulator tasks | 201 menuview_toggle: ; Show Menu or the simulator tasks |
192 movlw divemode_menuview_timeout | 202 movlw divemode_menuview_timeout |
193 movwf timeout_counter3 | 203 movwf timeout_counter3 |