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.

LP5009: I2C command using for quickly testing.

Part Number: LP5009
Other Parts Discussed in Thread: LP5012, LP5562

Hi TI supporter team,

Currently, I tried the commands as below but the LED are not be turned on.

i2cset -f -y 1 0x14 0x00 0x40
i2cset -f -y 1 0x14 0x02 0x0f
i2cset -f -y 1 0x14 0x03 0x0f
i2cset -f -y 1 0x14 0x04 0x80
i2cset -f -y 1 0x14 0x05 0x80
i2cset -f -y 1 0x14 0x06 0x80
i2cset -f -y 1 0x14 0x07 0x80
i2cset -f -y 1 0x14 0x08 0x80
i2cset -f -y 1 0x14 0x09 0x80
i2cset -f -y 1 0x14 0x0A 0x80
i2cset -f -y 1 0x14 0x0B 0x80
i2cset -f -y 1 0x14 0x0C 0x80
i2cset -f -y 1 0x14 0x0D 0x80
i2cset -f -y 1 0x14 0x0E 0x80
i2cset -f -y 1 0x14 0x0F 0x80
i2cset -f -y 1 0x14 0x10 0x80
i2cset -f -y 1 0x14 0x11 0x80
i2cset -f -y 1 0x14 0x12 0x80
i2cset -f -y 1 0x14 0x13 0x80
i2cset -f -y 1 0x14 0x17 0x00

Could you provide the sample of i2c commands for LED RGB test?

  • Hi Remus,

    I have checked your commands and I think it's no problem with it.

    Actually, you only need to at least 5 commands then you can light up the LED.

    1. Write 0x40 to DEVICE_CONFIG0 register 0x00 --- Byte 1
    2. Write 0xFF to LED_CONFIG0 register 0x02 --- Byte 2
    3. Write data to BANK_A_COLOR register 0x04 --- Byte 3
    4. Write data to BANK_B_COLOR register 0x05 --- Byte 4
    5. Write data to BANK_C_COLOR register 0x06 --- Byte 5

    I think you should first check your hardware connection is right. Then, you need to check your I2C signal has the ACK from device or you can just read from the device to see if you can read the right value from it.

    BR, Jared

  • Hi TI supporter team,

    Is it possible to control the LED behavior like this video?

    BR,

    Remus

  • Hi TI supporter team,

    Is it possible to control the LED behavior like the video only using busybox i2cset command?

    Could you provide the sample commands?

    (Currently, the basic RGB test is passed)

    BR,

    Remus

  • Hi Remus,

    Yes, we can control the LED behavior like the video. Please find the sample code below : LP5012/LP5009 Sample code

    BR, Jared

  • Hi Remus,

    Do you mind share me your email address? I can share the sample code via email, thanks!

    BR, Jared

  • Hi ,

    Here is my email address : remus_lin@sercomm.com

    BR,

    Remus

  • Hi Remus,

    Please check your email box, thanks!

    BR, Jared

  • i Jared,

    I have received the sample code link and downloaded the sample code.
    It seems that the LP5009 does not have Prog mem ENG registers like the LP5562.
    Therefore, the breathing behavior of the LED MUST rely on loop conditions (such as 'for', 'while' etc.) in the code.

    BR,
    Remus,

  • Hi Remus,

    Please check your mailbox! Btw, we can contact via email if you don't mind. Thanks!

    BR, Jared