Skip to content

Add Set rgb backlight command to set RGB Backlight in one command without flicker #10

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

Merged
merged 3 commits into from
Aug 28, 2018

Conversation

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 0-30, 0-30, 0-30 triplet.

Uses 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. Also includes a demo of this function OpenLCD_Qwiic_RGB_Backlight in Examples/Advanced directory.
Closes #9

@nseidle
Copy link
Member

nseidle commented Aug 28, 2018

This looks fantastic! Thank you!

@nseidle nseidle merged commit 1e48768 into sparkfun:master Aug 28, 2018
@fourstix fourstix deleted the set_rgb_backlight branch September 18, 2018 15:42
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