fix(underglow): Handle cycling effects on splits.

* Convert relative effect cycling to absolute effect selection.
This commit is contained in:
Peter Johanson
2021-11-09 05:04:54 +00:00
committed by Pete Johanson
parent 0febaa142a
commit d486304f79
4 changed files with 29 additions and 4 deletions

View File

@@ -17,6 +17,8 @@ int zmk_rgb_underglow_get_state(bool *state);
int zmk_rgb_underglow_on();
int zmk_rgb_underglow_off();
int zmk_rgb_underglow_cycle_effect(int direction);
int zmk_rgb_underglow_calc_effect(int direction);
int zmk_rgb_underglow_select_effect(int effect);
struct zmk_led_hsb zmk_rgb_underglow_calc_hue(int direction);
struct zmk_led_hsb zmk_rgb_underglow_calc_sat(int direction);
struct zmk_led_hsb zmk_rgb_underglow_calc_brt(int direction);