diff code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 283:4ec488f046f4

Battery sign color coded, work on new uart-started 115200Baud bootloader (Do NOT use yet!)
author heinrichsweikamp
date Tue, 19 Apr 2011 19:31:16 +0200
parents f8f865c70a0d
children 8874b6cd8f36
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Tue Apr 19 13:03:01 2011 +0200
+++ b/code_part1/OSTC_code_asm_part1/pled_outputs.asm	Tue Apr 19 19:31:16 2011 +0200
@@ -1854,17 +1854,20 @@
 
 update_batt_voltage3:
 	GETCUSTOM8	d'34'			; Color battery
+	btfsc	cc_active
+	movlw	color_yellow		; CC active
+	btfsc	cv_active
+	movlw	color_green			; CV active
     call	PLED_set_color
 
-	movlw	.176
+	movlw	.175
 	movff	WREG,win_top		; row top (0-239)
-	movlw	.192-.176
+	movlw	.192-.175
 	movff	WREG,win_height		; row bottom (0-239)
 	movlw	.2
 	movff	WREG,win_leftx2		; column left (0-159)
     movff   wait_temp,win_width	; column right (0-159)
 	call	PLED_box
-
 	call		PLED_standard_color
 	return