comparison src/tft_outputs.asm @ 134:4574aed5cd4c

Show clock in Apnea mode, minor layout changes in Apnea mode
author heinrichsweikamp
date Tue, 15 Jul 2014 10:20:37 +0200
parents 35b9da423de6
children e0b758865e91
comparison
equal deleted inserted replaced
133:939f1e83c4c2 134:4574aed5cd4c
3130 movff apnoe_secs,lo 3130 movff apnoe_secs,lo
3131 output_99x 3131 output_99x
3132 bcf leftbind 3132 bcf leftbind
3133 STRCAT_PRINT "" ; Show seconds in small font 3133 STRCAT_PRINT "" ; Show seconds in small font
3134 3134
3135
3136 call TFT_divemask_color 3135 call TFT_divemask_color
3137 WIN_TINY total_apnoe_text_column,total_apnoe_text_row 3136 WIN_TINY total_apnoe_text_column,total_apnoe_text_row
3138 STRCPY_TEXT_PRINT tApnoeTotal 3137 STRCPY_TEXT_PRINT tApnoeTotal
3139 call TFT_standard_color 3138 call TFT_standard_color
3140 movff divemins,lo 3139 movff divemins,lo
3535 3534
3536 global TFT_ead_end_tissues_clock_mask ; Setup Mask 3535 global TFT_ead_end_tissues_clock_mask ; Setup Mask
3537 TFT_ead_end_tissues_clock_mask: 3536 TFT_ead_end_tissues_clock_mask:
3538 ; The mask 3537 ; The mask
3539 call TFT_divemask_color 3538 call TFT_divemask_color
3539 btfsc FLAG_apnoe_mode ; In Apnoe mode?
3540 bra TFT_ead_end_tissues_clock_mask2 ; Yes
3541 btfsc FLAG_gauge_mode ; In Gauge mode?
3542 bra TFT_ead_end_tissues_clock_mask2 ; Yes
3540 ; Put three columns at HUD positions 3543 ; Put three columns at HUD positions
3541 WIN_TINY dive_custom_hud_column1,dive_custom_hud_row
3542 STRCPY_TEXT_PRINT tDiveClock
3543 WIN_TINY dive_custom_hud_column2,dive_custom_hud_row 3544 WIN_TINY dive_custom_hud_column2,dive_custom_hud_row
3544 STRCPY_TEXT_PRINT tDiveEAD_END 3545 STRCPY_TEXT_PRINT tDiveEAD_END
3545 WIN_TINY dive_custom_hud_column3,dive_custom_hud_row 3546 WIN_TINY dive_custom_hud_column3,dive_custom_hud_row
3546 STRCPY_TEXT_PRINT tDiveTissues 3547 STRCPY_TEXT_PRINT tDiveTissues
3548 TFT_ead_end_tissues_clock_mask2: ; Show only clock
3549 WIN_TINY dive_custom_hud_column1,dive_custom_hud_row
3550 STRCPY_TEXT_PRINT tDiveClock
3547 call TFT_standard_color 3551 call TFT_standard_color
3548 return 3552 return
3549 3553
3550 global TFT_ead_end_tissues_clock ; Show EAD/END, Tissues and clock 3554 global TFT_ead_end_tissues_clock ; Show EAD/END, Tissues and clock
3551 TFT_ead_end_tissues_clock: 3555 TFT_ead_end_tissues_clock:
3552 ; Update clock and date 3556 ; Update clock and date
3553 WIN_SMALL dive_clock_column,dive_clock_row 3557 WIN_SMALL dive_clock_column,dive_clock_row
3554 call TFT_clock2 ; print clock 3558 call TFT_clock2 ; print clock
3559
3560 btfsc FLAG_apnoe_mode ; In Apnoe mode?
3561 return ; Yes, done.
3562 btfsc FLAG_gauge_mode ; In Gauge mode?
3563 return ; Yes, done.
3564
3555 ; WIN_SMALL dive_endtime_column,dive_endtime_row 3565 ; WIN_SMALL dive_endtime_column,dive_endtime_row
3556 ; 3566 ;
3557 ; btfss decostop_active ; Already in nodeco mode ? 3567 ; btfss decostop_active ; Already in nodeco mode ?
3558 ; bra TFT_ead_end_tissues_clock2 ; No, overwrite with some spaces 3568 ; bra TFT_ead_end_tissues_clock2 ; No, overwrite with some spaces
3559 ; 3569 ;