comparison src/tft_outputs.asm @ 38:64976f1e0a1c

Show total divetime in apnea mode
author mh@mh-THINK.fritz.box
date Thu, 15 Aug 2013 13:30:05 +0200
parents 53a09c1b7410
children 1e2d2b0bca5b
comparison
equal deleted inserted replaced
37:0e1723f2761e 38:64976f1e0a1c
2394 WIN_MEDIUM divetime_column, divetime_row 2394 WIN_MEDIUM divetime_column, divetime_row
2395 lfsr FSR2,buffer 2395 lfsr FSR2,buffer
2396 output_16_3 ; displays only last three figures from a 16Bit value (0-999) 2396 output_16_3 ; displays only last three figures from a 16Bit value (0-999)
2397 call TFT_standard_color 2397 call TFT_standard_color
2398 STRCAT_PRINT "" ; Show minutes in large font 2398 STRCAT_PRINT "" ; Show minutes in large font
2399
2400 WIN_SMALL divetime_secs_column, divetime_secs_row ; left position for two sec figures 2399 WIN_SMALL divetime_secs_column, divetime_secs_row ; left position for two sec figures
2401 lfsr FSR2,buffer 2400 lfsr FSR2,buffer
2402 PUTC ':' 2401 PUTC ':'
2403 bsf leftbind 2402 bsf leftbind
2404 movff apnoe_secs,lo 2403 movff apnoe_secs,lo
2405 output_99x 2404 output_99x
2406 bcf leftbind 2405 bcf leftbind
2407 STRCAT_PRINT "" ; Show seconds in small font 2406 STRCAT_PRINT "" ; Show seconds in small font
2407
2408
2409 call TFT_divemask_color
2410 WIN_TINY total_apnoe_text_column,total_apnoe_text_row
2411 STRCPY_TEXT_PRINT tApnoeTotal
2412 call TFT_standard_color
2413 movff divemins,lo
2414 clrf hi
2415 WIN_MEDIUM apnoe_total_divetime_column, apnoe_total_divetime_row
2416 lfsr FSR2,buffer
2417 output_16_3 ; displays only last three figures from a 16Bit value (0-999)
2418 call TFT_standard_color
2419 STRCAT_PRINT "" ; Show minutes in large font
2420 WIN_SMALL apnoe_total_divetime_secs_column, apnoe_total_divetime_secs_row ; left position for two sec figures
2421 lfsr FSR2,buffer
2422 PUTC ':'
2423 bsf leftbind
2424 movff divesecs,lo
2425 output_99x
2426 bcf leftbind
2427 STRCAT_PRINT "" ; Show seconds in small font
2428
2408 return 2429 return
2409 2430
2410 ;============================================================================= 2431 ;=============================================================================
2411 ; Writes ostc3 #Serial and Firmware version in splash screen 2432 ; Writes ostc3 #Serial and Firmware version in splash screen
2412 ; 2433 ;