Skip to content

Set RGB Backlight in one command without flicker #9

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

Closed
fourstix opened this issue Aug 28, 2018 · 1 comment
Closed

Set RGB Backlight in one command without flicker #9

fourstix opened this issue Aug 28, 2018 · 1 comment

Comments

@fourstix
Copy link
Contributor

Add function to update RGB backlight as a single settings command followed by 3 bytes for the red, green and blue values. This will eliminate the delays and flickering of using 3 commands to set the colors, one by one.

This command has a few advantages over the original.

  1. It changes the backlight color at once, with no flickering through intermediate colors.
  2. It's quicker and a bit more intuitive to use a single command.
  3. It allows for all rgb value combinations, not just those that map to a 0-30, 0-30, 0-30 triplet. (Probably not a big deal, as maybe only an artist who has mastered like Monet, might be able to notice the difference.)
@fourstix
Copy link
Contributor Author

@nseidle I used the available command byte 43 '+' and added a new mode to consume the next 3 bytes for the red, green and blue values and set the backlight without any delay or confirmation message. I also included a demo of this function OpenLCD_Qwiic_RGB_Backlight in Examples/Advanced directory. I will submit a pull request with these changes. If you have any suggestions or would like to see anything done differently, please just let me know.

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

No branches or pull requests

1 participant