diff code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 499:2ac77db9c150

Added OLED brightness setting, texts 280, 312 and 313 need update
author heinrichsweikamp
date Tue, 15 Nov 2011 20:36:41 +0100
parents 0635fbb2fcf5
children ab2686087bce
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Mon Nov 14 08:12:13 2011 +0100
+++ b/code_part1/OSTC_code_asm_part1/oled_samsung.asm	Tue Nov 15 20:36:41 2011 +0100
@@ -661,7 +661,9 @@
 	return
 
 
-PLED_brightness_full: ;mH
+PLED_brightness_full: ; Choose between Eco and High...
+	btfsc	oled_brightness_high		; OLED brightness (=0: Eco, =1: High)
+	bra		PLED_brightness_full_high
 ; Mid
 	movlw	0x70
 	rcall	PLED_CmdWrite
@@ -722,7 +724,7 @@
 	rcall	PLED_DataWrite
 	return
 
-;PLED_brightness_full:
+PLED_brightness_full_high:
 ; Full
 	movlw	0x70
 	rcall	PLED_CmdWrite