Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 113:f3062a611eef
Merge
author | heinrichsweikamp |
---|---|
date | Mon, 23 Jun 2014 16:14:33 +0200 |
parents | bc7c022d2c74 |
children | 737d6f488729 |
comparison
equal
deleted
inserted
replaced
112:a24581f0b372 | 113:f3062a611eef |
---|---|
1111 movff o2_mv_sensor3+0,lo ; in 0.1mV steps | 1111 movff o2_mv_sensor3+0,lo ; in 0.1mV steps |
1112 movff o2_mv_sensor3+1,hi ; in 0.1mV steps | 1112 movff o2_mv_sensor3+1,hi ; in 0.1mV steps |
1113 output_16dp .4 ; xxx.y mV | 1113 output_16dp .4 ; xxx.y mV |
1114 STRCAT_PRINT "mV " | 1114 STRCAT_PRINT "mV " |
1115 WIN_SMALL surf_menu_sensor4_column,surf_menu_sensor4_row | 1115 WIN_SMALL surf_menu_sensor4_column,surf_menu_sensor4_row |
1116 | |
1117 btfss c3_hardware | |
1118 bra TFT_menu_hud_2 ; always for normal OSTC3 | |
1119 btfss s8_digital | |
1120 return ; Not for analog | |
1121 TFT_menu_hud_2: | |
1116 lfsr FSR2,buffer | 1122 lfsr FSR2,buffer |
1117 STRCPY "Batt:" | 1123 STRCPY "Batt:" |
1118 movff hud_battery_mv+0,lo ; in mV | 1124 movff hud_battery_mv+0,lo ; in mV |
1119 movff hud_battery_mv+1,hi ; in mV | 1125 movff hud_battery_mv+1,hi ; in mV |
1120 output_16dp .2 ; x.yyy V | 1126 output_16dp .2 ; x.yyy V |
1121 STRCAT_PRINT "V" | 1127 STRCAT_PRINT "V" |
1128 call TFT_standard_color | |
1129 bcf leftbind | |
1130 return | |
1131 | |
1132 global TFT_menu_hud2 | |
1133 TFT_menu_hud2: ; Yes, update mV data | |
1134 call TFT_attention_color ; show in yellow | |
1135 bsf leftbind | |
1136 WIN_SMALL surf_menu_sensor1_column,surf_menu2_sensor1_row | |
1137 lfsr FSR2,buffer | |
1138 movff o2_mv_sensor1+0,lo ; in 0.1mV steps | |
1139 movff o2_mv_sensor1+1,hi ; in 0.1mV steps | |
1140 output_16dp .4 ; xxx.y mV | |
1141 STRCAT_PRINT "mV " | |
1142 WIN_SMALL surf_menu_sensor2_column,surf_menu2_sensor2_row | |
1143 lfsr FSR2,buffer | |
1144 movff o2_mv_sensor2+0,lo ; in 0.1mV steps | |
1145 movff o2_mv_sensor2+1,hi ; in 0.1mV steps | |
1146 output_16dp .4 ; xxx.y mV | |
1147 STRCAT_PRINT "mV " | |
1148 WIN_SMALL surf_menu_sensor3_column,surf_menu2_sensor3_row | |
1149 lfsr FSR2,buffer | |
1150 movff o2_mv_sensor3+0,lo ; in 0.1mV steps | |
1151 movff o2_mv_sensor3+1,hi ; in 0.1mV steps | |
1152 output_16dp .4 ; xxx.y mV | |
1153 STRCAT_PRINT "mV " | |
1122 call TFT_standard_color | 1154 call TFT_standard_color |
1123 bcf leftbind | 1155 bcf leftbind |
1124 return | 1156 return |
1125 | 1157 |
1126 global TFT_clock | 1158 global TFT_clock |
1302 movff ambient_light+0,lo | 1334 movff ambient_light+0,lo |
1303 movff ambient_light+1,hi | 1335 movff ambient_light+1,hi |
1304 output_16 | 1336 output_16 |
1305 STRCAT_PRINT " " | 1337 STRCAT_PRINT " " |
1306 | 1338 |
1307 call get_rssi_level ; get rssi level | 1339 ; call get_rssi_level ; get rssi level |
1308 WIN_TINY .0,.54 | 1340 ; WIN_TINY .0,.54 |
1309 STRCPY "AN17:" | 1341 ; STRCPY "AN17:" |
1310 movff ADRESL,lo | 1342 ; movff ADRESL,lo |
1311 movff ADRESH,hi | 1343 ; movff ADRESH,hi |
1312 output_16 | 1344 ; output_16 |
1313 STRCAT_PRINT " " | 1345 ; STRCAT_PRINT " " |
1314 WIN_TINY .80,.54 | 1346 ; WIN_TINY .80,.54 |
1315 STRCPY "RSSI:" | 1347 ; STRCPY "RSSI:" |
1316 movff rssi_value,lo | 1348 ; movff rssi_value,lo |
1317 output_8 | 1349 ; output_8 |
1318 STRCAT_PRINT " " | 1350 ; STRCAT_PRINT " " |
1319 | 1351 |
1320 WIN_TINY .0,.72 | 1352 WIN_TINY .0,.72 |
1321 STRCPY "HUD_Status:" | 1353 STRCPY "HUD_Status:" |
1322 movff hud_status_byte,lo | 1354 movff hud_status_byte,lo |
1323 output_8 | 1355 output_8 |
1327 movff hud_battery_mv+0,lo | 1359 movff hud_battery_mv+0,lo |
1328 movff hud_battery_mv+1,hi | 1360 movff hud_battery_mv+1,hi |
1329 output_16 | 1361 output_16 |
1330 STRCAT_PRINT "mV " | 1362 STRCAT_PRINT "mV " |
1331 | 1363 |
1364 ; call disable_ir | |
1365 ; bsf mcp_power | |
1366 ; btfss mcp_power | |
1367 ; bra $-4 | |
1368 ; call get_analog_inputs | |
1332 WIN_TINY .0,.90 | 1369 WIN_TINY .0,.90 |
1333 STRCPY "Sens1.:" | 1370 STRCPY "Sens1.:" |
1334 movff o2_mv_sensor1+0,lo | 1371 movff o2_mv_sensor1+0,lo |
1335 movff o2_mv_sensor1+1,hi | 1372 movff o2_mv_sensor1+1,hi |
1336 output_16dp d'4' | 1373 output_16dp d'4' |
1974 banksel common | 2011 banksel common |
1975 return | 2012 return |
1976 | 2013 |
1977 global TFT_debug_output | 2014 global TFT_debug_output |
1978 TFT_debug_output: | 2015 TFT_debug_output: |
1979 return | 2016 btfss c3_hardware |
1980 WIN_TINY .107,.0 | 2017 return |
2018 WIN_TINY .80,.0 | |
1981 call TFT_standard_color | 2019 call TFT_standard_color |
1982 lfsr FSR2,buffer | 2020 lfsr FSR2,buffer |
1983 movff char_O_ceiling+0,lo | 2021 movff flag10,lo |
1984 movff char_O_ceiling+1,hi | 2022 output_8 |
2023 STRCAT_PRINT "" | |
2024 return | |
2025 | |
2026 WIN_TINY .110,.0 | |
2027 call TFT_standard_color | |
2028 lfsr FSR2,buffer | |
2029 movff o2_mv_sensor1+0,lo | |
2030 movff o2_mv_sensor1+1,hi | |
1985 output_16 | 2031 output_16 |
1986 STRCAT_PRINT "" | 2032 STRCAT_PRINT "" |
2033 | |
2034 WIN_TINY .110,.15 | |
2035 lfsr FSR2,buffer | |
2036 movff o2_mv_sensor2+0,lo | |
2037 movff o2_mv_sensor2+1,hi | |
2038 output_16 | |
2039 STRCAT_PRINT "" | |
2040 | |
2041 WIN_TINY .110,.30 | |
2042 lfsr FSR2,buffer | |
2043 movff o2_mv_sensor3+0,lo | |
2044 movff o2_mv_sensor3+1,hi | |
2045 output_16 | |
2046 STRCAT_PRINT "" | |
2047 | |
1987 return | 2048 return |
1988 | 2049 |
1989 global TFT_divetimeout ; Show timeout counter | 2050 global TFT_divetimeout ; Show timeout counter |
1990 TFT_divetimeout: | 2051 TFT_divetimeout: |
1991 call TFT_warning_set_window ; Sets the row and column for the current warning | 2052 call TFT_warning_set_window ; Sets the row and column for the current warning |
2283 STRCAT_TEXT_PRINT tDvOC ; OC | 2344 STRCAT_TEXT_PRINT tDvOC ; OC |
2284 bra TFT_display_decotype_exit | 2345 bra TFT_display_decotype_exit |
2285 TFT_display_decotype_surface2: | 2346 TFT_display_decotype_surface2: |
2286 decfsz lo,F | 2347 decfsz lo,F |
2287 bra TFT_display_decotype_surface3 | 2348 bra TFT_display_decotype_surface3 |
2288 STRCAT_TEXT_PRINT tDvCC ; CC | 2349 STRCAT_TEXT_PRINT tDvCC ; CC |
2350 call TFT_standard_color | |
2351 WIN_TINY surf_decotype_column+.18,surf_decotype_row+.12 | |
2352 | |
2353 TSTOSS opt_ccr_mode ; =0: Fixed SP, =1: Sensor | |
2354 bra TFT_display_decotype_cc_fixed | |
2355 ; Sensor mode | |
2356 STRCPY_TEXT tCCRModeSensor ; Sensor | |
2357 bra TFT_display_decotype_cc_common | |
2358 TFT_display_decotype_cc_fixed: | |
2359 STRCPY_TEXT tCCRModeFixedSP ; Fixed | |
2360 TFT_display_decotype_cc_common: | |
2361 STRCAT_PRINT "" | |
2289 bra TFT_display_decotype_exit | 2362 bra TFT_display_decotype_exit |
2290 TFT_display_decotype_surface3: | 2363 TFT_display_decotype_surface3: |
2291 decfsz lo,F | 2364 decfsz lo,F |
2292 bra TFT_display_decotype_surface4 | 2365 bra TFT_display_decotype_surface4 |
2293 STRCAT_TEXT_PRINT tDvGauge ; Gauge | 2366 STRCAT_TEXT_PRINT tDvGauge ; Gauge |