comparison code_part1/OSTC_code_asm_part1/display_lowlevel.asm @ 708:71bb907d0ce5

brightness settings for display1
author heinrichsweikamp
date Mon, 06 May 2013 09:49:18 +0200
parents 2129862bbfe6
children 8c293e76a517
comparison
equal deleted inserted replaced
707:2129862bbfe6 708:71bb907d0ce5
1029 DISP_brightness_full: ; Choose between Eco and High... 1029 DISP_brightness_full: ; Choose between Eco and High...
1030 btfsc DISPLAY_brightness_high ; DISPLAY brightness (=0: Eco, =1: High) 1030 btfsc DISPLAY_brightness_high ; DISPLAY brightness (=0: Eco, =1: High)
1031 bra DISP_brightness_full_high 1031 bra DISP_brightness_full_high
1032 ; Mid 1032 ; Mid
1033 bsf PORTB,7 1033 bsf PORTB,7
1034 nop
1034 bcf PORTB,6 1035 bcf PORTB,6
1035 1036
1036 movff win_flags,WREG ; Display1? win_flags is in bank0... 1037 movff win_flags,WREG ; Display1? win_flags is in bank0...
1037 btfsc WREG,1 ; Display1? 1038 btfsc WREG,1 ; Display1?
1038 return ; Yes, done. 1039 return ; Yes, done.
1047 1048
1048 1049
1049 DISP_brightness_full_high: 1050 DISP_brightness_full_high:
1050 ; Full 1051 ; Full
1051 bsf PORTB,7 1052 bsf PORTB,7
1053 nop
1052 bsf PORTB,6 1054 bsf PORTB,6
1053 1055
1054 movff win_flags,WREG ; Display1? win_flags is in bank0... 1056 movff win_flags,WREG ; Display1? win_flags is in bank0...
1055 btfsc WREG,1 ; Display1? 1057 btfsc WREG,1 ; Display1?
1056 return ; Yes, done. 1058 return ; Yes, done.
1065 1067
1066 1068
1067 DISP_brightness_low: 1069 DISP_brightness_low:
1068 ;Low 1070 ;Low
1069 bcf PORTB,7 1071 bcf PORTB,7
1072 nop
1070 bcf PORTB,6 1073 bcf PORTB,6
1071 movff win_flags,WREG ; Display1? win_flags is in bank0... 1074 movff win_flags,WREG ; Display1? win_flags is in bank0...
1072 btfsc WREG,1 ; Display1? 1075 btfsc WREG,1 ; Display1?
1073 return ; Yes, done. 1076 return ; Yes, done.
1074 movlw LOW display0_gamma_low_table 1077 movlw LOW display0_gamma_low_table