# HG changeset patch # User heinrichsweikamp # Date 1449578679 -3600 # Node ID 0cf00ecf3532f4def4103f51bd537d87168462e7 # Parent e8f5eed0eccfbcd2589669cdeb3b6da01768c75b CHANGE: Color-code battery % display in surface mode (Charge, Full, Normal) diff -r e8f5eed0eccf -r 0cf00ecf3532 code_part1/OSTC_code_asm_part1/changelog.txt --- a/code_part1/OSTC_code_asm_part1/changelog.txt Mon Nov 09 14:04:17 2015 +0100 +++ b/code_part1/OSTC_code_asm_part1/changelog.txt Tue Dec 08 13:44:39 2015 +0100 @@ -1,6 +1,6 @@ New in 3.12: BUGFIX: Minor layout fix (Battery warning in divemode) - +CHANGE: Color-code battery % display in surface mode (Charge, Full, Normal) New in 3.11: BUGFIX: "First Diluent" and "SP Mode" used same EEPROM location diff -r e8f5eed0eccf -r 0cf00ecf3532 code_part1/OSTC_code_asm_part1/outputs.asm --- a/code_part1/OSTC_code_asm_part1/outputs.asm Mon Nov 09 14:04:17 2015 +0100 +++ b/code_part1/OSTC_code_asm_part1/outputs.asm Tue Dec 08 13:44:39 2015 +0100 @@ -2308,7 +2308,14 @@ WIN_LEFT .1 WIN_FONT FT_SMALL WIN_INVERT .0 ; Init new Wordprocessor - call DISP_standard_color + + GETCUSTOM8 d'35' ; Standard output color + btfsc cc_active + movlw color_orange ; CC active + btfsc charge_done + movlw color_green ; Charge done. + call DISP_set_color + call update_batt_get_percent_in_lo ; 100 - 0 lfsr FSR2,letter STRCPY TXT_BATT ; Batt: @@ -2316,6 +2323,7 @@ output_8 bcf leftbind STRCAT_PRINT "%" + call DISP_standard_color return update_batt_voltage2: