comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 129:06c4899ddb4b

Custom views in dive mode configrable (New CF50-CF53) Total Average Depth (Non-Resetable) Some Display fixes in Divemode Bugfix Timeout reset in Surfacemode
author Heinrichsweikamp
date Tue, 04 Jan 2011 16:32:28 +0100
parents 245de99d1d15
children 03df42de03e1
comparison
equal deleted inserted replaced
127:245de99d1d15 129:06c4899ddb4b
865 STRCAT_PRINT "° " 865 STRCAT_PRINT "° "
866 return 866 return
867 867
868 PLED_show_ppO2: ; Show ppO2 868 PLED_show_ppO2: ; Show ppO2
869 ostc_debug 't' ; Sends debug-information to screen if debugmode active 869 ostc_debug 't' ; Sends debug-information to screen if debugmode active
870 WIN_TOP .120 870 WIN_TOP .119
871 WIN_LEFT .0 871 WIN_LEFT .0
872 WIN_FONT FT_SMALL 872 WIN_FONT FT_SMALL
873 PLED_color_code warn_ppo2 ; Color-code output (ppO2 stored in xC) 873 PLED_color_code warn_ppo2 ; Color-code output (ppO2 stored in xC)
874 874
875 STRCPY "ppO2:" 875 STRCPY "ppO2:"
1344 WIN_LEFT .39 1344 WIN_LEFT .39
1345 WIN_FONT FT_SMALL 1345 WIN_FONT FT_SMALL
1346 WIN_INVERT .0 ; Init new Wordprocessor 1346 WIN_INVERT .0 ; Init new Wordprocessor
1347 call PLED_standard_color 1347 call PLED_standard_color
1348 1348
1349 STRCPY_PRINT "\xB7" 1349 STRCPY_PRINT "\xB7" ; Cursor
1350 1350
1351 bcf sleepmode ; clear some flags 1351 bcf sleepmode ; clear some flags
1352 bcf menubit2 1352 bcf menubit2
1353 bcf menubit3 1353 bcf menubit3
1354 bcf switch_right 1354 bcf switch_right
2007 bsf show_last3 2007 bsf show_last3
2008 output_16_3 ;Displays only 0...999 2008 output_16_3 ;Displays only 0...999
2009 PUTC ':' 2009 PUTC ':'
2010 movff wait_temp,lo 2010 movff wait_temp,lo
2011 output_99x 2011 output_99x
2012 bcf leftbind
2013 call word_processor 2012 call word_processor
2014 2013
2015 ostc_debug 'U' ; Sends debug-information to screen if debugmode active 2014 ostc_debug 'U' ; Sends debug-information to screen if debugmode active
2016 2015
2017 WIN_TOP .216 2016 WIN_TOP .216
2024 movff avr_rel_pressure+1,hi 2023 movff avr_rel_pressure+1,hi
2025 call adjust_depth_with_salinity ; computes salinity setting into lo:hi [mBar] 2024 call adjust_depth_with_salinity ; computes salinity setting into lo:hi [mBar]
2026 bsf ignore_digit5 ; do not display 1cm depth 2025 bsf ignore_digit5 ; do not display 1cm depth
2027 output_16dp d'3' 2026 output_16dp d'3'
2028 bcf leftbind 2027 bcf leftbind
2028 STRCAT_PRINT "m"
2029 return
2030
2031 PLED_total_average_show:
2032 ; Non-Resettable Average
2033 call PLED_divemask_color ; Set Color for Divemode mask
2034 DISPLAYTEXTH d'281' ; Avr.Depth
2035
2036 PLED_total_average_show2:
2037 WIN_TOP .192
2038 WIN_LEFT .110
2039 WIN_FONT FT_SMALL
2040 call PLED_standard_color
2041
2042 lfsr FSR2,letter
2043 movff avr_rel_pressure_total+0,lo
2044 movff avr_rel_pressure_total+1,hi
2045 call adjust_depth_with_salinity ; computes salinity setting into lo:hi [mBar]
2046 bsf ignore_digit5 ; do not display 1cm depth
2047 bcf leftbind
2048 output_16dp d'3'
2029 STRCAT_PRINT "m" 2049 STRCAT_PRINT "m"
2030 return 2050 return
2031 2051
2032 2052
2033 PLED_serial: ; Writes OSTC #Serial and Firmware version in surfacemode 2053 PLED_serial: ; Writes OSTC #Serial and Firmware version in surfacemode
2048 call read_eeprom ; read byte 2068 call read_eeprom ; read byte
2049 movff EEDATA,hi 2069 movff EEDATA,hi
2050 2070
2051 bsf leftbind 2071 bsf leftbind
2052 output_16 2072 output_16
2053 STRCAT " \x85\x86 V" 2073 STRCAT " \x85\x86 V" ; Scribble logo...
2054 movlw softwareversion_x 2074 movlw softwareversion_x
2055 movwf lo 2075 movwf lo
2056 bsf leftbind 2076 bsf leftbind
2057 output_8 2077 output_8
2058 PUTC '.' 2078 PUTC '.'
2539 movlw d'100' 2559 movlw d'100'
2540 dcfsnz temp1,F 2560 dcfsnz temp1,F
2541 movlw d'125' 2561 movlw d'125'
2542 movff WREG,win_top 2562 movff WREG,win_top
2543 2563
2544 STRCPY_PRINT "\xB7" 2564 STRCPY_PRINT "\xB7" ; Cursor
2545 return 2565 return
2546
2547 ;PLED_profileview_menu:
2548 ; DISPLAYTEXT .127 ;"Exit"
2549 ; DISPLAYTEXT .128 ;"Delete"
2550 ;; DISPLAYTEXT .132 ;"Format"
2551 ; return
2552 2566
2553 ;PLED_saturation_graph_divemode: 2567 ;PLED_saturation_graph_divemode:
2554 ; ostc_debug 'h' ; Sends debug-information to screen if debugmode active 2568 ; ostc_debug 'h' ; Sends debug-information to screen if debugmode active
2555 PLED_tissue_saturation_graph: 2569 PLED_tissue_saturation_graph:
2556 ostc_debug 'i' ; Sends debug-information to screen if debugmode active 2570 ostc_debug 'i' ; Sends debug-information to screen if debugmode active