Mercurial > public > hwos_code
comparison src/customview.asm @ 123:d076e9c02438
add ceiling display
author | heinrichsweikamp |
---|---|
date | Sun, 29 Jun 2014 13:40:59 +0200 |
parents | 2acf3d068fae |
children | 4574aed5cd4c |
comparison
equal
deleted
inserted
replaced
122:3e84e2a64188 | 123:d076e9c02438 |
---|---|
44 bra customview_1sec_view6 | 44 bra customview_1sec_view6 |
45 dcfsnz WREG,F | 45 dcfsnz WREG,F |
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 | |
50 bra customview_1sec_view9 | |
49 ; Menupos3=0, do nothing | 51 ; Menupos3=0, do nothing |
50 return | 52 return |
51 | 53 |
52 customview_1sec_view3: | 54 customview_1sec_view3: |
53 call TFT_decoplan ; Show decoplan | 55 call TFT_decoplan ; Show decoplan |
71 call TFT_dyn_gaslist ; Update the gaslist | 73 call TFT_dyn_gaslist ; Update the gaslist |
72 return | 74 return |
73 customview_1sec_view8: ; Sensor voltages | 75 customview_1sec_view8: ; Sensor voltages |
74 call TFT_hud_voltages ; Show HUD details | 76 call TFT_hud_voltages ; Show HUD details |
75 return | 77 return |
78 customview_1sec_view9: ; Ceiling | |
79 call TFT_ceiling ; Show Ceiling | |
80 return | |
81 | |
76 | 82 |
77 ;============================================================================= | 83 ;============================================================================= |
78 ; Do every-minute tasks for the custom view area | 84 ; Do every-minute tasks for the custom view area |
79 | 85 |
80 global customview_minute | 86 global customview_minute |
294 ; Show next customview (and delete this flag) | 300 ; Show next customview (and delete this flag) |
295 global customview_toggle | 301 global customview_toggle |
296 customview_toggle: | 302 customview_toggle: |
297 bcf switch_right | 303 bcf switch_right |
298 incf menupos3,F ; Number of customview to show | 304 incf menupos3,F ; Number of customview to show |
299 movlw d'8' ; Max number of customsviews in divemode | 305 movlw d'9' ; Max number of customsviews in divemode |
300 cpfsgt menupos3 ; Max reached? | 306 cpfsgt menupos3 ; Max reached? |
301 bra customview_mask ; No, show | 307 bra customview_mask ; No, show |
302 customview_toggle_reset: ; Timeout occured | 308 customview_toggle_reset: ; Timeout occured |
303 clrf menupos3 ; Reset to zero (Zero=no custom view) | 309 clrf menupos3 ; Reset to zero (Zero=no custom view) |
304 global customview_mask | 310 global customview_mask |
321 bra customview_init_view6 ; Compass | 327 bra customview_init_view6 ; Compass |
322 dcfsnz WREG,F | 328 dcfsnz WREG,F |
323 bra customview_init_view7 ; Dynamic gaslist | 329 bra customview_init_view7 ; Dynamic gaslist |
324 dcfsnz WREG,F | 330 dcfsnz WREG,F |
325 bra customview_init_view8 ; HUD voltages | 331 bra customview_init_view8 ; HUD voltages |
332 dcfsnz WREG,F | |
333 bra customview_init_view9 ; Ceiling | |
326 customview_init_nocustomview: | 334 customview_init_nocustomview: |
327 call I2C_sleep_accelerometer ; Stop accelerometer | 335 call I2C_sleep_accelerometer ; Stop accelerometer |
328 call I2C_sleep_compass ; Stop compass | 336 call I2C_sleep_compass ; Stop compass |
329 bra customview_toggle_exit | 337 bra customview_toggle_exit |
330 | 338 |
399 btfss FLAG_ccr_mode ; In CC mode? | 407 btfss FLAG_ccr_mode ; In CC mode? |
400 bra customview_toggle ; no, Call next view... | 408 bra customview_toggle ; no, Call next view... |
401 call TFT_hud_mask ; Setup HUD mask | 409 call TFT_hud_mask ; Setup HUD mask |
402 call TFT_hud_voltages ; Show HUD details | 410 call TFT_hud_voltages ; Show HUD details |
403 bra customview_toggle_exit | 411 bra customview_toggle_exit |
412 | |
413 customview_init_view9: ; Ceiling | |
414 btfsc FLAG_apnoe_mode ; In Apnoe mode? | |
415 bra customview_toggle ; yes, Call next view... | |
416 btfsc FLAG_gauge_mode ; In Gauge mode? | |
417 bra customview_toggle ; Yes, Call next view... | |
418 call TFT_ceiling_mask ; Setup mask | |
419 call TFT_ceiling ; Show Ceiling | |
420 bra customview_toggle_exit | |
421 | |
404 | 422 |
405 customview_toggle_exit: | 423 customview_toggle_exit: |
406 call TFT_standard_color | 424 call TFT_standard_color |
407 bcf toggle_customview ; Clear flag | 425 bcf toggle_customview ; Clear flag |
408 return | 426 return |