Add BP5758 I2C LED driver and product example #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements support for BP5758, a 5-channel I2C constant current LED driver IC (address 0x15), and provides a product example for color temperature control.
Driver Implementation
components/light/bp5758/(value * max + 127) / 255Light driver integration
LIGHT_DEVICE_TYPE_BP5758enum valuebp5758_iostruct tolight_io_conf_tunion for I2C pinsProduct Example
products/light_cw_bp5758/light_cw_pwmstructure adapted for I2C controlNotes
Current implementation uses current control registers for brightness scaling. Production deployments should verify register addresses against the specific BP5758 variant datasheet, as grayscale registers may differ. Individual I2C transactions per channel can be batched if protocol supports it.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.