comparison src/tft_outputs.asm @ 105:0aaa4877ba25

Show HUD voltages only in CCR mode...
author heinrichsweikamp
date Tue, 03 Jun 2014 13:20:05 +0200
parents 223579e905c3
children bc7c022d2c74
comparison
equal deleted inserted replaced
104:223579e905c3 105:0aaa4877ba25
931 call TFT_standard_color 931 call TFT_standard_color
932 return 932 return
933 933
934 global TFT_hud_voltages 934 global TFT_hud_voltages
935 TFT_hud_voltages: ; Show HUD details 935 TFT_hud_voltages: ; Show HUD details
936 ; The mask
937 call TFT_divemask_color
938 WIN_TINY .5,dive_custom_hud_row
939 STRCPY_TEXT_PRINT tDiveHudMask1
940 WIN_TINY .55,dive_custom_hud_row
941 STRCPY_TEXT_PRINT tDiveHudMask2
942 WIN_TINY .105,dive_custom_hud_row
943 STRCPY_TEXT_PRINT tDiveHudMask3
944 call TFT_standard_color 936 call TFT_standard_color
945 WIN_SMALL .5,dive_hud_data_row 937 WIN_SMALL .5,dive_hud_data_row
946 movff o2_mv_sensor1+0,lo 938 movff o2_mv_sensor1+0,lo
947 movff o2_mv_sensor1+1,hi 939 movff o2_mv_sensor1+1,hi
948 lfsr FSR2,buffer 940 lfsr FSR2,buffer
1982 banksel common 1974 banksel common
1983 return 1975 return
1984 1976
1985 global TFT_debug_output 1977 global TFT_debug_output
1986 TFT_debug_output: 1978 TFT_debug_output:
1987 return
1988 WIN_TINY .107,.0 1979 WIN_TINY .107,.0
1989 call TFT_standard_color 1980 call TFT_standard_color
1990 lfsr FSR2,buffer 1981 lfsr FSR2,buffer
1991 movff active_diluent,lo 1982 movff char_O_ceiling+0,lo
1992 output_8 1983 movff char_O_ceiling+1,hi
1984 output_16
1993 STRCAT_PRINT "" 1985 STRCAT_PRINT ""
1994 return 1986 return
1995 1987
1996 global TFT_divetimeout ; Show timeout counter 1988 global TFT_divetimeout ; Show timeout counter
1997 TFT_divetimeout: 1989 TFT_divetimeout:
3546 global TFT_ead_end_tissues_clock ; Show EAD/END, Tissues and clock 3538 global TFT_ead_end_tissues_clock ; Show EAD/END, Tissues and clock
3547 TFT_ead_end_tissues_clock: 3539 TFT_ead_end_tissues_clock:
3548 ; Update clock and date 3540 ; Update clock and date
3549 WIN_SMALL dive_clock_column,dive_clock_row 3541 WIN_SMALL dive_clock_column,dive_clock_row
3550 call TFT_clock2 ; print clock 3542 call TFT_clock2 ; print clock
3551 WIN_SMALL dive_endtime_column,dive_endtime_row 3543 ; WIN_SMALL dive_endtime_column,dive_endtime_row
3552 lfsr FSR2,buffer 3544 ; lfsr FSR2,buffer
3553 3545 ;
3554 btfss decostop_active ; Already in nodeco mode ? 3546 ; btfss decostop_active ; Already in nodeco mode ?
3555 bra TFT_ead_end_tissues_clock2 ; No, overwrite with some spaces 3547 ; bra TFT_ead_end_tissues_clock2 ; No, overwrite with some spaces
3556 3548 ;
3557 STRCPY 0x94 ; "End of dive" icon 3549 ; STRCPY 0x94 ; "End of dive" icon
3558 movff hours,WREG 3550 ; movff hours,WREG
3559 mullw .60 3551 ; mullw .60
3560 movf mins,W 3552 ; movf mins,W
3561 addwf PRODL 3553 ; addwf PRODL
3562 movlw .0 3554 ; movlw .0
3563 addwfc PRODH 3555 ; addwfc PRODH
3564 movff PRODL, lo 3556 ; movff PRODL, lo
3565 movff PRODH, hi 3557 ; movff PRODH, hi
3566 3558 ;
3567 ; Add TTS 3559 ; ; Add TTS
3568 movff int_O_ascenttime+0,WREG ; TTS 3560 ; movff int_O_ascenttime+0,WREG ; TTS
3569 addwf lo,F 3561 ; addwf lo,F
3570 movff int_O_ascenttime+1,WREG ; TTS is 16bits 3562 ; movff int_O_ascenttime+1,WREG ; TTS is 16bits
3571 addwfc hi,F 3563 ; addwfc hi,F
3572 3564 ;
3573 call convert_time ; converts hi:lo in minutes to hours (hi) and minutes (lo) 3565 ; call convert_time ; converts hi:lo in minutes to hours (hi) and minutes (lo)
3574 movf hi,W 3566 ; movf hi,W
3575 movff lo,hi 3567 ; movff lo,hi
3576 movwf lo ; exchange lo and hi 3568 ; movwf lo ; exchange lo and hi
3577 output_99x 3569 ; output_99x
3578 PUTC ':' 3570 ; PUTC ':'
3579 movff hi,lo 3571 ; movff hi,lo
3580 output_99x 3572 ; output_99x
3581 STRCAT_PRINT "" 3573 ; STRCAT_PRINT ""
3582 bra TFT_ead_end_tissues_clock3 3574 ; bra TFT_ead_end_tissues_clock3
3583 3575 ;
3584 TFT_ead_end_tissues_clock2: 3576 ;TFT_ead_end_tissues_clock2:
3585 STRCPY_PRINT " " 3577 ; STRCPY_PRINT " "
3586 TFT_ead_end_tissues_clock3: 3578 ;TFT_ead_end_tissues_clock3:
3587 3579
3588 ; Show END/EAD 3580 ; Show END/EAD
3589 WIN_SMALL dive_ead_column,dive_ead_row 3581 WIN_SMALL dive_ead_column,dive_ead_row
3590 STRCPY_TEXT tEAD ; EAD: 3582 STRCPY_TEXT tEAD ; EAD:
3591 movff char_O_EAD,lo 3583 movff char_O_EAD,lo