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

Light updates #1826

Merged
merged 5 commits into from
Jul 17, 2019
Merged

Light updates #1826

merged 5 commits into from
Jul 17, 2019

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jul 14, 2019

Will likely rebase & merge this as-is, so adding all 3 commits

@hyteoo 4702fcf restores pre-1.13.3 behaviour when useWhite is off
if useColor is also off, it will apply brightness to all the channels (as it does right now)

// Convert RGB to RGBW(W)
if (_light_has_color && _light_use_white) {
for (unsigned char i=0; i < channels; i++) {
_light_channel[i].value = _light_channel[i].inputValue * brightness;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Huh. I think I missed this interaction with the real values. If bound, it needs to do value = inputValue for all of the leftover channels

@mcspr mcspr merged commit 6765fd8 into xoseperez:dev Jul 17, 2019
@mcspr mcspr deleted the light/rgb-and-ww-brightness branch July 17, 2019 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Magic Home LED Controller: white channel not independent anymore
1 participant