Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
498:4c7f7807b250 | 499:2ac77db9c150 |
---|---|
659 movlw 0x01 | 659 movlw 0x01 |
660 rcall PLED_DataWrite ; Display ON | 660 rcall PLED_DataWrite ; Display ON |
661 return | 661 return |
662 | 662 |
663 | 663 |
664 PLED_brightness_full: ;mH | 664 PLED_brightness_full: ; Choose between Eco and High... |
665 btfsc oled_brightness_high ; OLED brightness (=0: Eco, =1: High) | |
666 bra PLED_brightness_full_high | |
665 ; Mid | 667 ; Mid |
666 movlw 0x70 | 668 movlw 0x70 |
667 rcall PLED_CmdWrite | 669 rcall PLED_CmdWrite |
668 movlw 0x1B | 670 movlw 0x1B |
669 rcall PLED_DataWrite | 671 rcall PLED_DataWrite |
720 rcall PLED_DataWrite | 722 rcall PLED_DataWrite |
721 movlw 0x11 | 723 movlw 0x11 |
722 rcall PLED_DataWrite | 724 rcall PLED_DataWrite |
723 return | 725 return |
724 | 726 |
725 ;PLED_brightness_full: | 727 PLED_brightness_full_high: |
726 ; Full | 728 ; Full |
727 movlw 0x70 | 729 movlw 0x70 |
728 rcall PLED_CmdWrite | 730 rcall PLED_CmdWrite |
729 movlw 0x1F | 731 movlw 0x1F |
730 rcall PLED_DataWrite | 732 rcall PLED_DataWrite |