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.

[参考译文] LP5569:LP5569如何运行调光(淡入/淡出)?

Guru**** 1161010 points
Other Parts Discussed in Thread: LP5569, LP5813
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/1300868/lp5569-lp5569-how-i-run-dimming-fader-fade-in-out

器件型号:LP5569
主题中讨论的其他器件: LP5813

我尝试到 LP5569的调光

如何进行调光?

我希望通过仅发送一个命令来调暗 LED、

请在我的代码下面进行检查。  

HAL_StatusTypeDef ret;
uint8_t tValue = 0;

//初始化
for (uint8_t i = 0;i < 9;i++){
 tValue = 0x30;I2C_Write_LED_driver (LP5569_ADDR、LP5569_LED0_CNTRL + I、&tValue、1);
 tValue = 0x10;I2C_Write_LED_driver (LP5569_ADDR、LP5569_LED0_CURRENT_CNTRL + I、&tValue、1);
 tValue = 0x64;I2C_Write_LED_driver (LP5569_ADDR、LP5569_LED0_PWM + I、&tValue、1);

tValue = 0x3;I2C_Write_LED_driver (LP5569_ADDR、LP5569_ENGINE1_MAPPIG1、&tValue、1);
tValue = 0xff;I2C_Write_LED_driver (LP5569_ADDR、LP5569_ENGINE1_MAPPIG2、&tValue、1);
tValue = 0x3;I2C_Write_LED_driver (LP5569_ADDR、LP5569_ENGINE2_MAPPIG1、&tValue、1);
tValue = 0xff;I2C_Write_LED_driver (LP5569_ADDR、LP5569_ENGINE2_MAPPIG2、&tValue、1);
tValue = 0x3;I2C_Write_LED_driver (LP5569_ADDR、LP5569_Engine3_MAPPING1、&tValue、1);
tValue = 0xff;I2C_Write_LED_driver (LP5569_ADDR、LP5569_Engine3_MAPPING2、&tValue、1);

tValue = 0xff;I2C_Write_LED_driver (LP5569_ADDR、LP5569_MASTER_fader_1、tValue、1);
tValue = 0xff;I2C_Write_LED_driver (LP5569_ADDR、LP5569_MASTER_fader_2、tValue、1);
tValue = 0xff;I2C_Write_LED_driver (LP5569_ADDR、LP5569_MASTER_fader_3、tValue、1);

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Lee、

    很抱歉我手头没有 LP5569EVM、请给我一些时间来申请。 BTW、我想向 您推荐基于 LBC9的全新 LP5813器件、即下一代 LP5569。

    BR、Jared