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

Unbound Backlight Brightness; Turn Backlight Off at 0x00 #299

Merged
merged 7 commits into from
Jan 3, 2021

Conversation

krkeegan
Copy link
Collaborator

@krkeegan krkeegan commented Jan 3, 2021

This is primarily the work of @tommycw1 from #297. This fixes #294.

This unbounds the backlight setting. As @tommycw1 points out, values below the stated value in the documentation seem to work. How low each device goes seems to vary, I have added documentation to help users. All devices seem to have an upper limit at 0x7F. But they all treat values above this as max. So I have removed the bounding as it is unnecessary.

This also merges the backlight on/off command into the level command. Setting the backlight to 0x00 will turn it off, and any other value will turn it on.

Tested on:

  • Dimmers

  • Switches

  • Keypadlincs

  • Outlets

  • Unit Tests Added

  • Linters passed.

  • Documentation Updated

tommycw1 and others added 7 commits January 2, 2021 12:27
…and updated docs. Also added feature for backlight on/off to KeypadLinc, Switch, and Dimmer

Signed-off-by: Tom Weichmann <tommycw10@gmail.com>
Signed-off-by: Tom Weichmann <tommycw10@gmail.com>
Setting backlight on/off status can be controlled by setting
level to 0x00 or not 0x00.

Remove bounds on backlight, but update documentation to provide
suggestions.  Sending values outside of bounds doesn't seem to
have any adverse effects, and a few devices respond outside of
bounds.
@krkeegan krkeegan merged commit 53f0e07 into TD22057:dev Jan 3, 2021
@krkeegan krkeegan deleted the LED_Brightness branch January 3, 2021 20:27
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.

2 participants