comparison src/tft_outputs.asm @ 90:3274e87fd027

NEW: automatic compass gain makes calibration quicker
author heinrichsweikamp
date Tue, 15 Apr 2014 14:40:49 +0200
parents 2a992aba61ef
children f2201aa374db
comparison
equal deleted inserted replaced
89:c34516c99ca8 90:3274e87fd027
1136 movff compass_DZ+0,lo 1136 movff compass_DZ+0,lo
1137 movff compass_DZ+1,hi 1137 movff compass_DZ+1,hi
1138 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required 1138 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required
1139 output_16 1139 output_16
1140 STRCAT_PRINT " " 1140 STRCAT_PRINT " "
1141 return
1142
1143 global TFT_compass_show_gain
1144 TFT_compass_show_gain: ; Show the current compass gain
1145 movff opt_compass_gain,lo ; 0-7 (230LSB/Gauss to 1370LSB/Gaus)
1146 tstfsz lo
1147 return ; Do not show unless gain=0
1148 WIN_TINY .20,.68
1149 STRCPY_TEXT tCompassGain
1150 movff opt_compass_gain,lo ; 0-7 (230LSB/Gauss to 1370LSB/Gaus)
1151 bsf leftbind
1152 output_8
1153 bcf leftbind
1154 STRCAT_PRINT "!"
1141 return 1155 return
1142 1156
1143 global TFT_update_raw_data 1157 global TFT_update_raw_data
1144 TFT_update_raw_data: 1158 TFT_update_raw_data:
1145 call TFT_standard_color 1159 call TFT_standard_color