Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 235:23311219dacc
under construction: new hardware_flag to configure different hardware versions
author | heinrichsweikamp |
---|---|
date | Wed, 25 Feb 2015 16:49:59 +0100 |
parents | 57155164faad |
children | e2ea74646127 |
comparison
equal
deleted
inserted
replaced
234:57155164faad | 235:23311219dacc |
---|---|
864 STRCPY_TEXT_PRINT tGaslist | 864 STRCPY_TEXT_PRINT tGaslist |
865 call TFT_standard_color | 865 call TFT_standard_color |
866 | 866 |
867 WIN_SMALL dive_custom_dyn_mask_column1,dive_custom_dyn_mask_row1 | 867 WIN_SMALL dive_custom_dyn_mask_column1,dive_custom_dyn_mask_row1 |
868 movlw .1 | 868 movlw .1 |
869 movwf tft_gaslist_temp+0 | 869 movwf temp1 |
870 bsf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint | 870 bsf short_gas_decriptions ; =1: Use short versions of gaslist_strcat_gas_mod and gaslist_strcat_setpoint |
871 rcall TFT_dyn_gaslist_common | 871 rcall TFT_dyn_gaslist_common |
872 WIN_SMALL dive_custom_dyn_mask_column1,dive_custom_dyn_mask_row2 | 872 WIN_SMALL dive_custom_dyn_mask_column1,dive_custom_dyn_mask_row2 |
873 incf tft_gaslist_temp+0,F ; +1 | 873 incf temp1,F ; +1 |
874 movf tft_gaslist_temp+0,W ; into W | 874 movf temp1,W ; into W |
875 rcall TFT_dyn_gaslist_common | 875 rcall TFT_dyn_gaslist_common |
876 WIN_SMALL dive_custom_dyn_mask_column2,dive_custom_dyn_mask_row1 | 876 WIN_SMALL dive_custom_dyn_mask_column2,dive_custom_dyn_mask_row1 |
877 incf tft_gaslist_temp+0,F ; +1 | 877 incf temp1,F ; +1 |
878 movf tft_gaslist_temp+0,W ; into W | 878 movf temp1,W ; into W |
879 rcall TFT_dyn_gaslist_common | 879 rcall TFT_dyn_gaslist_common |
880 WIN_SMALL dive_custom_dyn_mask_column2,dive_custom_dyn_mask_row2 | 880 WIN_SMALL dive_custom_dyn_mask_column2,dive_custom_dyn_mask_row2 |
881 incf tft_gaslist_temp+0,F ; +1 | 881 incf temp1,F ; +1 |
882 movf tft_gaslist_temp+0,W ; into W | 882 movf temp1,W ; into W |
883 rcall TFT_dyn_gaslist_common | 883 rcall TFT_dyn_gaslist_common |
884 call TFT_standard_color | 884 call TFT_standard_color |
885 return | 885 return |
886 | 886 |
887 TFT_dyn_gaslist_common: | 887 TFT_dyn_gaslist_common: |
888 cpfseq active_gas ;1-5 | 888 cpfseq active_gas ;1-5 |
889 bra $+4 | 889 bra $+4 |
890 incf tft_gaslist_temp+0,F ; +1 | 890 incf temp1,F ; +1 |
891 movff tft_gaslist_temp+0,lo | 891 movff temp1,lo |
892 movff tft_gaslist_temp+0,PRODL | 892 movff temp1,PRODL |
893 decf PRODL,F ;-1 to have 0-4 | 893 decf PRODL,F ;-1 to have 0-4 |
894 bsf leftbind | 894 bsf leftbind |
895 output_8 ; Gas number | 895 output_8 ; Gas number |
896 bcf leftbind | 896 bcf leftbind |
897 PUTC ":" | 897 PUTC ":" |
1204 movff o2_mv_sensor3+1,hi ; in 0.1mV steps | 1204 movff o2_mv_sensor3+1,hi ; in 0.1mV steps |
1205 output_16dp .4 ; xxx.y mV | 1205 output_16dp .4 ; xxx.y mV |
1206 STRCAT_PRINT "mV " | 1206 STRCAT_PRINT "mV " |
1207 WIN_SMALL surf_menu_sensor4_column,surf_menu_sensor4_row | 1207 WIN_SMALL surf_menu_sensor4_column,surf_menu_sensor4_row |
1208 | 1208 |
1209 btfss cr_hardware | 1209 btfss rechargeable |
1210 bra TFT_menu_hud_2 ; always for normal OSTC3 | 1210 bra TFT_menu_hud_2 ; always for normal OSTC3 |
1211 btfss s8_digital | 1211 btfss s8_digital |
1212 return ; Not for analog | 1212 return ; Not for analog |
1213 TFT_menu_hud_2: | 1213 TFT_menu_hud_2: |
1214 STRCPY "Batt:" | 1214 STRCPY "Batt:" |
2806 ; | 2806 ; |
2807 global TFT_serial | 2807 global TFT_serial |
2808 TFT_serial: | 2808 TFT_serial: |
2809 WIN_TINY .5,.225 | 2809 WIN_TINY .5,.225 |
2810 STRCPY "OSTC" ; Won't translate that... | 2810 STRCPY "OSTC" ; Won't translate that... |
2811 btfsc cr_hardware | 2811 btfsc rechargeable |
2812 bra TFT_serial2 | 2812 bra TFT_serial2 |
2813 STRCAT "3 #" | 2813 STRCAT "3 #" |
2814 bra TFT_serial3 | 2814 bra TFT_serial3 |
2815 TFT_serial2: | 2815 TFT_serial2: |
2816 STRCAT " cR #" | 2816 STRCAT " cR #" |