# HG changeset patch # User heinrichsweikamp # Date 1318491662 -7200 # Node ID 0635fbb2fcf502a20c244f0d3aa05437b50b657e # Parent 8e1fb9cdd62a45c2731822f35289c336e9d8beb0 Tweaking gamma values diff -r 8e1fb9cdd62a -r 0635fbb2fcf5 code_part1/OSTC_code_asm_part1/oled_samsung.asm --- 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