Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 544:64a45f203144
NEW: Show Compass calibration results in Compass menu
author | heinrichsweikamp |
---|---|
date | Wed, 06 Sep 2017 15:34:49 +0200 |
parents | cf68fe0c3002 |
children | 7e6df19264b6 |
comparison
equal
deleted
inserted
replaced
543:a92cecf8cee4 | 544:64a45f203144 |
---|---|
3159 movff xA+0,lo ; Full hours | 3159 movff xA+0,lo ; Full hours |
3160 output_8 | 3160 output_8 |
3161 PUTC "h" | 3161 PUTC "h" |
3162 bcf leftbind | 3162 bcf leftbind |
3163 return ; Done. | 3163 return ; Done. |
3164 | |
3165 extern tCalX,tCalY,tCalZ | |
3166 global menu_cal_x | |
3167 menu_cal_x: | |
3168 lfsr FSR1,tCalX | |
3169 call strcat_text | |
3170 movff compass_CX_f+0,lo | |
3171 movff compass_CX_f+1,hi | |
3172 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
3173 bsf leftbind | |
3174 output_16 | |
3175 bcf leftbind | |
3176 return | |
3177 | |
3178 global menu_cal_y | |
3179 menu_cal_y: | |
3180 lfsr FSR1,tCalY | |
3181 call strcat_text | |
3182 movff compass_CY_f+0,lo | |
3183 movff compass_CY_f+1,hi | |
3184 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
3185 bsf leftbind | |
3186 output_16 | |
3187 bcf leftbind | |
3188 return | |
3189 | |
3190 global menu_cal_z | |
3191 menu_cal_z: | |
3192 lfsr FSR1,tCalZ | |
3193 call strcat_text | |
3194 movff compass_CZ_f+0,lo | |
3195 movff compass_CZ_f+1,hi | |
3196 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
3197 bsf leftbind | |
3198 output_16 | |
3199 bcf leftbind | |
3200 return | |
3201 | |
3164 | 3202 |
3165 ;----------------------------------------------------------------------------- | 3203 ;----------------------------------------------------------------------------- |
3166 ; ppO2 menu | 3204 ; ppO2 menu |
3167 global divesets_ppo2_max | 3205 global divesets_ppo2_max |
3168 extern tPPO2Max | 3206 extern tPPO2Max |