comparison src/tft_outputs.asm @ 41:5041477eee79

Surface customview with important deco settings
author mh@mh-THINK
date Thu, 15 Aug 2013 15:37:34 +0200
parents 1e2d2b0bca5b
children 92aa5238a99c
comparison
equal deleted inserted replaced
40:1e2d2b0bca5b 41:5041477eee79
1121 1121
1122 ; call TFT_serial 1122 ; call TFT_serial
1123 bcf leftbind 1123 bcf leftbind
1124 return 1124 return
1125 1125
1126 global TFT_surface_decosettings ; Show all deco settings
1127 TFT_surface_decosettings:
1128 ; Deco Mode
1129 call TFT_standard_color
1130 movff char_I_deco_model,WREG
1131 iorwf WREG
1132 bnz TFT_surface_decosettings1
1133
1134 ; Display ZH-L16 sat/desat model.
1135 TEXT_SMALL surf_gaslist_column,surf_gaslist_row, tZHL16
1136 WIN_TOP surf_gaslist_row+(surf_gaslist_spacing*.2)
1137 lfsr FSR2,buffer
1138 movff char_I_desaturation_multiplier,lo
1139 bsf leftbind
1140 output_8
1141 STRCAT "%/"
1142 movff char_I_saturation_multiplier,lo
1143 output_8
1144 STRCAT_PRINT "%"
1145 bra TFT_surface_decosettings2
1146
1147 ; Display ZH-L16-GF low/high model.
1148 TFT_surface_decosettings1:
1149 TEXT_SMALL surf_gaslist_column,surf_gaslist_row, tZHL16GF
1150 WIN_TOP surf_gaslist_row+(surf_gaslist_spacing*.1)
1151 lfsr FSR2,buffer
1152 movff char_I_GF_Low_percentage,lo
1153 output_99x
1154 STRCAT "%/"
1155 movff char_I_GF_High_percentage,lo
1156 output_99x
1157 STRCAT_PRINT "%"
1158 ;bra TFT_surface_decosettings2
1159 TFT_surface_decosettings2:
1160 ; FTTS
1161 WIN_TOP surf_gaslist_row+(surf_gaslist_spacing*.2)
1162 lfsr FSR2,buffer
1163 STRCPY_TEXT tFTTSMenu
1164 movff char_I_extra_time,lo
1165 bsf leftbind
1166 output_8
1167 STRCAT_TEXT_PRINT tMinutes
1168
1169 ; Last Stop
1170 WIN_TOP surf_gaslist_row+(surf_gaslist_spacing*.3)
1171 lfsr FSR2,buffer
1172 STRCPY_TEXT tLastDecostop
1173 movff char_I_depth_last_deco,lo
1174 output_8
1175 STRCAT_TEXT_PRINT tMeters
1176
1177 ; Salinity
1178 WIN_TOP surf_gaslist_row+(surf_gaslist_spacing*.4)
1179 lfsr FSR2,buffer
1180 STRCPY_TEXT tDvSalinity
1181 movff opt_salinity,lo
1182 output_8
1183 bcf leftbind
1184 STRCAT_TEXT_PRINT tPercent
1185 return ; Done.
1126 1186
1127 global TFT_surface_compass_mask 1187 global TFT_surface_compass_mask
1128 TFT_surface_compass_mask: 1188 TFT_surface_compass_mask:
1129 WIN_SMALL surf_compass_mask_column,surf_compass_mask_row 1189 WIN_SMALL surf_compass_mask_column,surf_compass_mask_row
1130 call TFT_standard_color 1190 call TFT_standard_color