This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How Color Set Mode sets

Part Number: LP5024

Tool/software: TI C/C++ Compiler

Among the methods to use LP5024 are Bank Mode and Color Set Mode, and Bank Mode did RGB LED control.
I'm not trying to control the Color set mode.
I modified the example program provided by TI, but it doesn't work.

Can you give me some advice?

  • It seems you want to change the color independently.

    So please first LED_CONFIG0 as 00h and you can use OUTx_COLOR register to set the color.

  • My settings are as follows.

    LP5024_Chip_Switch(0x40);
     _delay_ms(1);

     LP5024_Mode_Select_Normal();

     LP5024_Device_Config1(0);
     LP5024_LED_CONFIG0(0x00);
     
     LP5024_LED_Color_Set(1, 255, 0 ,0);      // RGB LED1
     LP5024_LED_Color_Set(3, 0, 255 ,0);     // RGB LED3
     LP5024_LED_Color_Set(5, 0, 0 ,255);     // RGB LED5
     LP5024_LED_Color_Set(7, 255, 255 ,0); // RGB LED7

    And when you turn on the LED in Bank Mode, the LED goes off the first few times.

    Do you have any idea why?

    I wonder if it has anything to do with the setting.

    Thank you for your interest in my writing.

  • Hi,

      If you want to change the color independently, please set the LED_Global_Off bit to 1 when you finished your selected channel setting. If you want to use the bank control mode, you should set the BANK BRIGHTNESS and BANK_X_COLOR register according to your lighting pattern, and then enabling the corresponding LEDX_BANK_EN bit in DEVICE_CONFIG1 register.

      In your code, you just set the brightness and color of channel independently, rather than BANK BRIGHTNESS and BANK_X_COLOR register. So when you turn on the LED in Bank Mode, the LED maybe goes off the first few times.