Mercurial > public > hwos_code
comparison src/customview.asm @ 188:ebc28381f17d
NEW: Show Bailout Gas List in Surface mode (CCR Modes)
CHANGE: Faster update rate for sensor display in surface mode
author | heinrichsweikamp |
---|---|
date | Mon, 27 Oct 2014 11:28:48 +0100 |
parents | faa06c58e977 |
children | e79bc535ef9e |
comparison
equal
deleted
inserted
replaced
187:669b5d00706d | 188:ebc28381f17d |
---|---|
136 movwf menupos3 ; Reset to one (Always one custom view visible) | 136 movwf menupos3 ; Reset to one (Always one custom view visible) |
137 | 137 |
138 global surf_customview_mask | 138 global surf_customview_mask |
139 surf_customview_mask: | 139 surf_customview_mask: |
140 WIN_BOX_BLACK .50,surf_warning1_row-1, .0, surf_decotype_column-.1 ; top, bottom, left, right | 140 WIN_BOX_BLACK .50,surf_warning1_row-1, .0, surf_decotype_column-.1 ; top, bottom, left, right |
141 call TFT_standard_color | 141 ; Prepare title |
142 WIN_TINY surf_customview_title_column,surf_customview_title_row | |
143 WIN_COLOR color_greenish | |
142 movff menupos3,WREG ; Menupos3 holds number of customview function | 144 movff menupos3,WREG ; Menupos3 holds number of customview function |
143 dcfsnz WREG,F | 145 dcfsnz WREG,F |
144 bra surf_customview_init_view1 ; OC Gas list | 146 bra surf_customview_init_view1 ; OC Gas list |
145 dcfsnz WREG,F | 147 dcfsnz WREG,F |
146 bra surf_customview_init_view2 ; CC Dil list | 148 bra surf_customview_init_view2 ; CC Dil list |
160 | 162 |
161 movlw .1 | 163 movlw .1 |
162 movwf menupos3 ; Reset to one (Always one custom view visible) | 164 movwf menupos3 ; Reset to one (Always one custom view visible) |
163 | 165 |
164 surf_customview_init_view1: ; View1: OC Gas list | 166 surf_customview_init_view1: ; View1: OC Gas list |
167 btfsc FLAG_gauge_mode | |
168 bra surf_customview_toggle | |
169 btfsc FLAG_apnoe_mode | |
170 bra surf_customview_toggle | |
165 btfsc FLAG_ccr_mode | 171 btfsc FLAG_ccr_mode |
166 bra surf_customview_toggle | 172 bra surf_customview_init_view1_bail ; Bailoutversion |
167 btfsc FLAG_gauge_mode | 173 STRCPY_TEXT_PRINT tGaslist ; Title of customview |
168 bra surf_customview_toggle | 174 call TFT_standard_color |
169 btfsc FLAG_apnoe_mode | 175 call TFT_gaslist_surfmode ; Show gas list |
170 bra surf_customview_toggle | 176 bra customview_toggle_exit ; Done. |
177 | |
178 surf_customview_init_view1_bail: | |
179 STRCPY_TEXT_PRINT tDiveBailout ; Title of customview | |
180 call TFT_standard_color | |
171 call TFT_gaslist_surfmode ; Show gas list | 181 call TFT_gaslist_surfmode ; Show gas list |
172 bra customview_toggle_exit ; Done. | 182 bra customview_toggle_exit ; Done. |
173 | 183 |
174 surf_customview_init_view2: ; View2: CC Dil list | 184 surf_customview_init_view2: ; View2: CC Dil list |
175 btfss FLAG_ccr_mode | 185 btfss FLAG_ccr_mode |
176 bra surf_customview_toggle | 186 bra surf_customview_toggle |
177 btfsc FLAG_gauge_mode | 187 btfsc FLAG_gauge_mode |
178 bra surf_customview_toggle | 188 bra surf_customview_toggle |
179 btfsc FLAG_apnoe_mode | 189 btfsc FLAG_apnoe_mode |
180 bra surf_customview_toggle | 190 bra surf_customview_toggle |
191 STRCPY_TEXT_PRINT tGaslistCC ; Title of customview | |
192 call TFT_standard_color | |
181 call TFT_dillist_surfmode ; Show diluent list | 193 call TFT_dillist_surfmode ; Show diluent list |
182 bra customview_toggle_exit ; Done. | 194 bra customview_toggle_exit ; Done. |
183 | 195 |
184 surf_customview_init_view3: ; View3: CC SP list | 196 surf_customview_init_view3: ; View3: CC SP list |
185 btfss FLAG_ccr_mode | 197 btfss FLAG_ccr_mode |
186 bra surf_customview_toggle | 198 bra surf_customview_toggle |
187 btfsc FLAG_gauge_mode | 199 btfsc FLAG_gauge_mode |
188 bra surf_customview_toggle | 200 bra surf_customview_toggle |
189 btfsc FLAG_apnoe_mode | 201 btfsc FLAG_apnoe_mode |
190 bra surf_customview_toggle | 202 bra surf_customview_toggle |
203 STRCPY_TEXT_PRINT tFixedSetpoints ; Title of customview | |
204 call TFT_standard_color | |
191 call TFT_splist_surfmode ; Show Setpoint list | 205 call TFT_splist_surfmode ; Show Setpoint list |
192 bra customview_toggle_exit ; Done. | 206 bra customview_toggle_exit ; Done. |
193 | 207 |
194 surf_customview_init_view4: ; View4: Custom text | 208 surf_customview_init_view4: ; View4: Custom text |
209 call TFT_standard_color | |
195 call TFT_custom_text ; Show the custom text | 210 call TFT_custom_text ; Show the custom text |
196 bra customview_toggle_exit ; Done. | 211 bra customview_toggle_exit ; Done. |
197 | 212 |
198 surf_customview_init_view5: ; View5: Tissue Diagram | 213 surf_customview_init_view5: ; View5: Tissue Diagram |
199 btfsc FLAG_gauge_mode | 214 btfsc FLAG_gauge_mode |
200 bra surf_customview_toggle | 215 bra surf_customview_toggle |
201 btfsc FLAG_apnoe_mode | 216 btfsc FLAG_apnoe_mode |
202 bra surf_customview_toggle | 217 bra surf_customview_toggle |
218 call TFT_standard_color | |
203 call TFT_surface_tissues ; Show Tissue diagram | 219 call TFT_surface_tissues ; Show Tissue diagram |
204 bra customview_toggle_exit ; Done. | 220 bra customview_toggle_exit ; Done. |
205 | 221 |
206 surf_customview_init_view6: ; View6: Compass | 222 surf_customview_init_view6: ; View6: Compass |
207 call I2C_init_accelerometer ; Start accelerometer | 223 call I2C_init_accelerometer ; Start accelerometer |