cue-sdk-python icon indicating copy to clipboard operation
cue-sdk-python copied to clipboard

Ability to reset colour back to transparent

Open autolisis opened this issue 4 years ago • 1 comments

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.

autolisis avatar May 28 '20 06:05 autolisis