Skip to content

Conversation

@thedjnK
Copy link
Contributor

@thedjnK thedjnK commented Apr 17, 2024

Various enhancements to the LED strip driver class:

  • Adds a common binding with (mandatory) chain length and colour ordering properties
  • Adds a length function which returns the length of the LED strip
  • Fixes some formatting issues with the driver
  • Check length before updating LED strip
  • Make update channels function optional
  • Add chain length and colour mapping to LED strips in boards and overlays
  • Remove LED length Kconfig from sample as chain length is now mandatory

@thedjnK thedjnK requested review from simonguinot and removed request for mbolivar-ampere April 17, 2024 19:03
@zephyrbot zephyrbot added area: Display area: Samples Samples platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) area: LED Label to identify LED subsystem platform: TI SimpleLink Texas Instruments SimpleLink MCU area: Devicetree Binding PR modifies or adds a Device Tree binding Release Notes To be mentioned in the release notes labels Apr 17, 2024
@thedjnK thedjnK requested a review from simonguinot May 1, 2024 17:27
@thedjnK thedjnK force-pushed the ledstripupdates branch 2 times, most recently from f009600 to c2fdeeb Compare May 4, 2024 09:36
simonguinot
simonguinot previously approved these changes May 4, 2024
Copy link
Contributor

@simonguinot simonguinot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thedjnK !

@thedjnK thedjnK force-pushed the ledstripupdates branch from c2fdeeb to 352f5e8 Compare May 6, 2024 16:35
@thedjnK thedjnK requested a review from simonguinot May 6, 2024 16:36
soburi
soburi previously approved these changes May 6, 2024
Copy link
Member

@aescolar aescolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment #71630 (comment)

@thedjnK thedjnK requested review from aescolar and pdgendt May 7, 2024 17:04
thedjnK added 8 commits May 7, 2024 18:08
Adds a common binding with a chain length and colour ordering
property

Signed-off-by: Jamie McCrae <[email protected]>
Adds chain length and colour mapping properties to LED strip devices
on boards where these parameters are now required

Signed-off-by: Jamie McCrae <[email protected]>
Adds a length function which returns the length of the LED strip

Signed-off-by: Jamie McCrae <[email protected]>
Updates the include file to fix some formatting issues

Signed-off-by: Jamie McCrae <[email protected]>
Checks that the supplied length is valid for the given driver
before passing it to the update function

Signed-off-by: Jamie McCrae <[email protected]>
Makes the update channels function optional, this is only
implemented in one driver so can be safely omitted from most
drivers

Signed-off-by: Jamie McCrae <[email protected]>
Adds changes about the LED strip driver

Signed-off-by: Jamie McCrae <[email protected]>
The chain-length DTS property is now mandatory, so remove the
optional Kconfig for setting the length

Signed-off-by: Jamie McCrae <[email protected]>
@thedjnK thedjnK dismissed stale reviews from soburi and simonguinot via 3ecbc6e May 7, 2024 17:11
@thedjnK thedjnK force-pushed the ledstripupdates branch from 352f5e8 to 3ecbc6e Compare May 7, 2024 17:11
@thedjnK thedjnK requested a review from soburi May 7, 2024 17:11
@aescolar aescolar dismissed their stale review May 8, 2024 06:47

Addressed

@thedjnK
Copy link
Contributor Author

thedjnK commented May 13, 2024

ping @soburi

@henrikbrixandersen henrikbrixandersen merged commit 92145a2 into zephyrproject-rtos:main May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Devicetree Binding PR modifies or adds a Device Tree binding area: Display area: LED Label to identify LED subsystem area: Samples Samples platform: Raspberry Pi Pico Raspberry Pi Pico (RPi Pico) platform: TI SimpleLink Texas Instruments SimpleLink MCU Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants