Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/oled_samsung.asm @ 483:0635fbb2fcf5
Tweaking gamma values
author | heinrichsweikamp |
---|---|
date | Thu, 13 Oct 2011 09:41:02 +0200 |
parents | 472bccc39aeb |
children | 2ac77db9c150 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/oled_samsung.asm Thu Oct 13 08:37:26 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/oled_samsung.asm Thu Oct 13 09:41:02 2011 +0200 @@ -661,7 +661,69 @@ return -PLED_brightness_full: +PLED_brightness_full: ;mH +; Mid + movlw 0x70 + rcall PLED_CmdWrite + movlw 0x1B + rcall PLED_DataWrite + movlw 0x80 + rcall PLED_DataWrite + movlw 0x71 + rcall PLED_CmdWrite + movlw 0x1F + rcall PLED_DataWrite + movlw 0x00 + rcall PLED_DataWrite + movlw 0x72 + rcall PLED_CmdWrite + movlw 0x22 + rcall PLED_DataWrite + movlw 0x00 + rcall PLED_DataWrite + + movlw 0x73 + rcall PLED_CmdWrite + movlw 0x17 + rcall PLED_DataWrite + movlw 0x11 + rcall PLED_DataWrite + movlw 0x74 + rcall PLED_CmdWrite + movlw 0x1A + rcall PLED_DataWrite + movlw 0x0E + rcall PLED_DataWrite + + movlw 0x75 + rcall PLED_CmdWrite + movlw 0x1D + rcall PLED_DataWrite + movlw 0x15 + rcall PLED_DataWrite + movlw 0x76 + rcall PLED_CmdWrite + movlw 0x18 + rcall PLED_DataWrite + movlw 0x11 + rcall PLED_DataWrite + + movlw 0x77 + rcall PLED_CmdWrite + movlw 0x1E + rcall PLED_DataWrite + movlw 0x18 + rcall PLED_DataWrite + movlw 0x78 + rcall PLED_CmdWrite + movlw 0x1D + rcall PLED_DataWrite + movlw 0x11 + rcall PLED_DataWrite + return + +;PLED_brightness_full: +; Full movlw 0x70 rcall PLED_CmdWrite movlw 0x1F @@ -719,10 +781,11 @@ rcall PLED_DataWrite movlw 0x15 rcall PLED_DataWrite - return + PLED_brightness_low: +;Low movlw 0x70 rcall PLED_CmdWrite movlw 0x14