Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[FR] Allow more than one Neopixel to be a static background light. #20679

Closed
SysGh-st opened this issue Jan 5, 2021 · 2 comments
Closed

[FR] Allow more than one Neopixel to be a static background light. #20679

SysGh-st opened this issue Jan 5, 2021 · 2 comments
Labels

Comments

@SysGh-st
Copy link
Contributor

SysGh-st commented Jan 5, 2021

Description

In configuration.h, one can use NEOPIXEL_BKGD_LED_INDEX to tell which one of the pixel LED's to be set with a static value regardless of what the other neopixel LED's currently are set at.
However it seems this variable only allows to point at one LED only.

Feature Workflow

Allow NEOPIXEL_BKGD_LED_INDEX to take an array at an arbitrary legth in order to allow any arbitrary LED's to be set as static background light.
Say I'd want three LED's in random positions of the strip to be static, I'd give this:
NEOPIXEL_BKGD_LED_INDEX { 1, 6, 11 } and have LED 1, 6 and 11 in the series to be static background light.
or
NEOPIXEL_BKGD_LED_INDEX { 0, 1, 2, 13, 14, 15 } . to have the three first and three last LED's of a 16 long LED strip as static.

Additional Information

It would make wiring of multiple LED strips a whole lot easier where one don't have to wire background lights separately. The background lights can be part of the neopixel strips.

@ellensp
Copy link
Contributor

ellensp commented May 26, 2021

This has been added
see in Configuration.h
// Use some of the NeoPixel LEDs for static (background) lighting
//#define NEOPIXEL_BKGD_INDEX_FIRST 0 // Index of the first background LED
//#define NEOPIXEL_BKGD_INDEX_LAST 5 // Index of the last background LED

@ellensp ellensp closed this as completed May 26, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants