Hello,
I am trying to create a "soft white" breathing effect using the LP5521 driver. Using the program pasted below, I would expect to see a white light ramping up, then ramping down, and repeating forever. However, what I see instead is a white light ramping up, ramping down, and on subsequent ramps it gets less white and other colors get in there. It's as if the different colors are not in sync. I've attached a video of what I'm seeing, and below is the program. Notice the video ending on blue--I don't expect to see blue if I have all 3 colors ramping with the same timing--the mix should be even, creating white. Are the colors not running at exactly the same time?
Is this expected behavior, or is there an error in he program (as pasted below)?
My setup:
HW: LP5521 Demo Rev 2.1
SW: lp5521x4.exe (version 1.0.0)
My program:
.RED
wait 999
set_pwm 0
ramp 510, 25
ramp 510, 25
ramp 510, 25
ramp 510, -25
ramp 510, -25
ramp 510, -25
set_pwm 0
start
.GREEN
wait 999
set_pwm 0
ramp 510, 20
ramp 510, 20
ramp 510, 20
ramp 510, -20
ramp 510, -20
ramp 510, -20
set_pwm 0
start
.BLUE
wait 999
set_pwm 0
ramp 510, 10
ramp 510, 10
ramp 510, 10
ramp 510, -10
ramp 510, -10
ramp 510, -10
set_pwm 0
start
Thank you,
Katie