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

Ability to reset colour back to transparent #5

Open
autolisis opened this issue May 28, 2020 · 1 comment
Open

Ability to reset colour back to transparent #5

autolisis opened this issue May 28, 2020 · 1 comment

Comments

@autolisis
Copy link

Hi, sorry for bothering you again. but after the discussion in #4, I have another nice-to-have feature to request.

By default, if we just connect to the SDK and do nothing (with the default layer), all the colors that are already set are not changed at all, and the default iCUE animation continues to play. I take this to mean that by default, when the SDK starts, the color that is set is fully transparent (#00000000)

Now, if I run this code:

led = CorsairLedId.K_F12
cols = {}
cols[led] = (255, 255, 255)
sdk.set_led_colors_buffer_by_device_index(0, cols)

This sets the color of the F12 key to white and overrides the default rainbow animation for that key alone while not affecting any other key.

Now, however, there is no way to go back to the state before setting the key and make that key transparent again. It would be nice if there was some functionality (maybe reset_led_colors_by_device_index? Something like cols[led] = None would also work.

In essence, the SDK is overriding the color only for that one key. It would be nice to have the ability to "release" it back to iCUE's control.

@Tenn0
Copy link

Tenn0 commented Jul 8, 2021

I have a solution for this: request the control and then release it. If you already have the control, release it. That will reset it to its state before.

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

2 participants