comparison code_part1/OSTC_code_asm_part1/outputs.asm @ 831:0cf00ecf3532

CHANGE: Color-code battery % display in surface mode (Charge, Full, Normal)
author heinrichsweikamp
date Tue, 08 Dec 2015 13:44:39 +0100
parents 2151c4135fad
children 23ed973d4fb9
comparison
equal deleted inserted replaced
830:e8f5eed0eccf 831:0cf00ecf3532
2306 2306
2307 WIN_TOP .175 2307 WIN_TOP .175
2308 WIN_LEFT .1 2308 WIN_LEFT .1
2309 WIN_FONT FT_SMALL 2309 WIN_FONT FT_SMALL
2310 WIN_INVERT .0 ; Init new Wordprocessor 2310 WIN_INVERT .0 ; Init new Wordprocessor
2311 call DISP_standard_color 2311
2312 GETCUSTOM8 d'35' ; Standard output color
2313 btfsc cc_active
2314 movlw color_orange ; CC active
2315 btfsc charge_done
2316 movlw color_green ; Charge done.
2317 call DISP_set_color
2318
2312 call update_batt_get_percent_in_lo ; 100 - 0 2319 call update_batt_get_percent_in_lo ; 100 - 0
2313 lfsr FSR2,letter 2320 lfsr FSR2,letter
2314 STRCPY TXT_BATT ; Batt: 2321 STRCPY TXT_BATT ; Batt:
2315 bsf leftbind 2322 bsf leftbind
2316 output_8 2323 output_8
2317 bcf leftbind 2324 bcf leftbind
2318 STRCAT_PRINT "%" 2325 STRCAT_PRINT "%"
2326 call DISP_standard_color
2319 return 2327 return
2320 2328
2321 update_batt_voltage2: 2329 update_batt_voltage2:
2322 WIN_FRAME_STD .174, .194, .1, .33 2330 WIN_FRAME_STD .174, .194, .1, .33
2323 2331