Part Number:LP5569
Hi all,
I am still struggling to extend a simple LED breathing effect to different mapping options. Our application has the following LED outputs
LED1 - Connected to a white LED_A
LED2 - Connected to a white LED_B
LED3 - Connected to a white LED_C
LED4 - Connected to an RGB LED_D (R)
LED5 - Connected to an RGB LED_D (G)
LED6 - Connected to an RGB LED_D (B)
LED7 - Connected to an RGB LED_E (R)
LED8 - Connected to an RGB LED_E (G)
LED9 - Connected to an RGB LED_E (B)
I want to use a very simple engine that creates an infinite breathing effect and associate it with the different 5 LEDs flashing white, one at a time. Please note that LED_A, LED_B and LED_C will activate one line and LED_D and LED_E will activate 3 lines each. I will then need 5 different LED mappings associated to engine 1. Can the mapping be changed dynamically?
The program is something along the following lines:
.segment program1
map_addr led_a (it works if I define a dw instruction with one LED combination)
set_pwm 0
loop1:
ramp 1, 100
ramp 1, -100
wait 0.3
branch 0,
loop1 end
My question is, how can I define the mapping of the 5 different combinations I want to generate independently?
Thanks for your help