comparison src/tft_outputs.asm @ 646:5b7fe7777425

3.16 release
author heinrichs weikamp
date Thu, 14 Oct 2021 12:03:24 +0200
parents 8c1f1f334275
children 357341239438
comparison
equal deleted inserted replaced
642:a9a0188091e4 646:5b7fe7777425
1569 bra TFT_depth_metric_100m ; YES - print depth in full meters only 1569 bra TFT_depth_metric_100m ; YES - print depth in full meters only
1570 1570
1571 ; depth in meters and decimeters 1571 ; depth in meters and decimeters
1572 btfsc cur_depth_greater_100m ; was the depth >= 100 meter during last call? 1572 btfsc cur_depth_greater_100m ; was the depth >= 100 meter during last call?
1573 rcall TFT_depth_box_black ; YES - clear depth area 1573 rcall TFT_depth_box_black ; YES - clear depth area
1574
1575 btfsc cur_depth_greater_100m ; was the depth >= 100 meter during last call?
1576 rcall TFT_depth_position_m_ft ; re-set output position for full meters/feet
1577
1574 bcf cur_depth_greater_100m ; current depth is now < 100 meter 1578 bcf cur_depth_greater_100m ; current depth is now < 100 meter
1575 PRINT ; dump full meters to screen 1579 PRINT ; dump full meters to screen
1576 1580
1577 btfsc depth_inverse_last ; in inverse printing cycle? 1581 btfsc depth_inverse_last ; in inverse printing cycle?
1578 bsf win_invert ; YES - print inverse 1582 bsf win_invert ; YES - print inverse
1594 1598
1595 TFT_depth_metric_100m: 1599 TFT_depth_metric_100m:
1596 ; full meters only 1600 ; full meters only
1597 btfss cur_depth_greater_100m ; was the depth >= 100 meter during last call? 1601 btfss cur_depth_greater_100m ; was the depth >= 100 meter during last call?
1598 rcall TFT_depth_box_black ; NO - clear depth area 1602 rcall TFT_depth_box_black ; NO - clear depth area
1603
1604 btfss cur_depth_greater_100m ; was the depth >= 100 meter during last call?
1605 rcall TFT_depth_position_m_ft ; re-set output position for full meters/feet
1606
1599 bsf cur_depth_greater_100m ; depth is >= 100 meter now 1607 bsf cur_depth_greater_100m ; depth is >= 100 meter now
1600 REINIT_BUFFER ; re-initialize the output buffer 1608 REINIT_BUFFER ; re-initialize the output buffer
1601 bsf omit_digit_2 ; print depth in full meters, i.e. do not print 1st and 2nd digit 1609 bsf omit_digit_2 ; print depth in full meters, i.e. do not print 1st and 2nd digit
1602 output_65535 ; print depth for range >= 100 meter (0xx-655xx) 1610 output_65535 ; print depth for range >= 100 meter (0xx-655xx)
1603 PRINT ; dump to screen 1611 PRINT ; dump to screen
2831 2839
2832 TFT_clear_message_window_surf_2: 2840 TFT_clear_message_window_surf_2:
2833 WIN_BOX_BLACK surf_warning2_row, surf_warning2_row+.24, surf_warning2_column, surf_warning2_column+.76 ; top, bottom, left, right 2841 WIN_BOX_BLACK surf_warning2_row, surf_warning2_row+.24, surf_warning2_column, surf_warning2_column+.76 ; top, bottom, left, right
2834 return ; done 2842 return ; done
2835 2843
2844 ;-----------------------------------------------------------------------------
2845 ; Surface Mode - Message - when "I2CFail" was triggered
2846 ;
2847 global TFT_message_i2c_error
2848 TFT_message_i2c_error:
2849 rcall TFT_message_open ; set row and column for the message
2850 tstfsz WREG ; is there room for the message?
2851 return ; NO - skip message in this cycle
2852 STRCPY "I2C " ; print "I2C Error:"
2853 movff i2c_error_vault+0,WREG ; last device adress
2854 output_hex
2855 PUTC " "
2856 movff i2c_error_vault+1,WREG ; last data byte
2857 output_hex
2858 bra TFT_message_close ; finalize message output
2836 2859
2837 ;----------------------------------------------------------------------------- 2860 ;-----------------------------------------------------------------------------
2838 ; Surface Mode - Message - Desaturation 2861 ; Surface Mode - Message - Desaturation
2839 ; 2862 ;
2840 global TFT_surf_mesg_desat 2863 global TFT_surf_mesg_desat
6028 6051
6029 ;============================================================================= 6052 ;=============================================================================
6030 tft_out16 CODE 6053 tft_out16 CODE
6031 ;============================================================================= 6054 ;=============================================================================
6032 6055
6033
6034 global TFT_debug_output 6056 global TFT_debug_output
6035 TFT_debug_output: 6057 TFT_debug_output:
6036 6058
6037 IFNDEF _debug_output 6059 IFNDEF _debug_output
6038 6060
6046 WIN_TINY .100,.30 ; surface mode: fits under the textual logo in the upper right corner 6068 WIN_TINY .100,.30 ; surface mode: fits under the textual logo in the upper right corner
6047 ; WIN_TINY .35, .0 ; dive mode: fits to the right side of the depth label 6069 ; WIN_TINY .35, .0 ; dive mode: fits to the right side of the depth label
6048 ; WIN_TINY .0, . 0 ; dive mode: overwrites depth label 6070 ; WIN_TINY .0, . 0 ; dive mode: overwrites depth label
6049 FONT_COLOR_MEMO ; set color 6071 FONT_COLOR_MEMO ; set color
6050 6072
6051 movff max_CCPR1L,lo 6073 movff ambient_light+0,lo
6052 output_256 6074 output_256
6053 PUTC "," 6075 PUTC ","
6054 movff analog_sw2,lo; left 6076 movff ambient_light+0,lo
6055 output_256 6077 movff ambient_light+1,hi
6056 PUTC "," 6078 output_65535
6057 movff analog_sw1,lo; right 6079
6058 output_256 6080
6059 6081
6060 ; ; deco engine scheduling performance 6082 ; ; deco engine scheduling performance
6061 ; MOVII int_O_profiling_overrun,mpr ; runtime +/- versus target 6083 ; MOVII int_O_profiling_overrun,mpr ; runtime +/- versus target
6062 ; btfss mpr+1,7 ; overrun? 6084 ; btfss mpr+1,7 ; overrun?
6063 ; bra TFT_debug_output_1 ; YES 6085 ; bra TFT_debug_output_1 ; YES