Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

lights: Add LP5562 RGBLED driver #21685

Merged
merged 1 commit into from
Jun 13, 2023
Merged

lights: Add LP5562 RGBLED driver #21685

merged 1 commit into from
Jun 13, 2023

Conversation

julianoes
Copy link
Contributor

Backport of #21649 to v1.14.

FYI @vincentpoont2

This adds support for the TI LP5562 RGB LED driver.

Things to note:
- The driver is initialized in simple PWM mode using its internal clock,
  for R,G,B, but not for W(hite).
- The chip doesn't have a WHO_AM_I or DEVICE_ID register to check.
  Instead we read the W_CURRENT register that we're generally not using
  and therefore doesn't get changed.
- The current is left at the default 17.5 mA but could be changed using
  the command line argument.

Datasheet:
https://www.ti.com/lit/ds/symlink/lp5562.pdf

Signed-off-by: Julian Oes <julian@oes.ch>
@julianoes julianoes requested a review from dagar June 6, 2023 01:15
@julianoes
Copy link
Contributor Author

I want to make sure this one doesn't miss v1.14, so I'm merging it now.

@julianoes julianoes merged commit b21e7e6 into release/1.14 Jun 13, 2023
@julianoes julianoes deleted the pr-backport-lp5562 branch June 13, 2023 01:52
@airmind
Copy link

airmind commented Sep 9, 2023

@julianoes

Will you consider this IC has bit more advantage?

It is in a QFN package, occupy almost same PCB space, but easier for assembly from manufacturing perspective.
I am considering integrate it in new HW, would love to see it is supported by PX4 by default.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants