Browse Source

refactor: Update dithering setting decoding

main
Mathias Rasmussen 4 years ago
parent
commit
35ad32b54a
  1. 6
      Bluejay.asm

6
Bluejay.asm

@ -3438,11 +3438,9 @@ decode_temp_done:
mov Temp1, #Pgm_Dithering ; Read programmed dithering setting mov Temp1, #Pgm_Dithering ; Read programmed dithering setting
mov A, @Temp1 mov A, @Temp1
clr Flag_Dithering
jz decode_dithering
setb Flag_Dithering
add A, #0FFh ; Carry set if A is not zero
mov Flag_Dithering, C ; Set dithering enabled
decode_dithering:
IF PWM_BITS_H == 2 ; Initialize pwm dithering bit patterns IF PWM_BITS_H == 2 ; Initialize pwm dithering bit patterns
mov Temp1, #Dithering_Patterns mov Temp1, #Dithering_Patterns
mov @Temp1, #00h mov @Temp1, #00h

Loading…
Cancel
Save