2020-07-26 05:53:42 +10:00
|
|
|
/*
|
2020-09-10 13:57:44 +10:00
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
2020-07-26 05:53:42 +10:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-07-25 13:37:00 +10:00
|
|
|
#pragma once
|
|
|
|
|
2021-02-03 06:50:02 +11:00
|
|
|
struct zmk_led_hsb {
|
|
|
|
uint16_t h;
|
|
|
|
uint8_t s;
|
|
|
|
uint8_t b;
|
|
|
|
};
|
|
|
|
|
2020-07-26 05:53:42 +10:00
|
|
|
int zmk_rgb_underglow_toggle();
|
2021-01-21 02:57:03 +11:00
|
|
|
int zmk_rgb_underglow_get_state(bool *state);
|
|
|
|
int zmk_rgb_underglow_on();
|
|
|
|
int zmk_rgb_underglow_off();
|
2020-07-26 05:53:42 +10:00
|
|
|
int zmk_rgb_underglow_cycle_effect(int direction);
|
2021-11-09 16:04:54 +11:00
|
|
|
int zmk_rgb_underglow_calc_effect(int direction);
|
|
|
|
int zmk_rgb_underglow_select_effect(int effect);
|
2021-02-03 06:50:02 +11:00
|
|
|
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);
|
2020-07-26 05:53:42 +10:00
|
|
|
int zmk_rgb_underglow_change_hue(int direction);
|
|
|
|
int zmk_rgb_underglow_change_sat(int direction);
|
|
|
|
int zmk_rgb_underglow_change_brt(int direction);
|
|
|
|
int zmk_rgb_underglow_change_spd(int direction);
|
2021-02-03 06:50:02 +11:00
|
|
|
int zmk_rgb_underglow_set_hsb(struct zmk_led_hsb color);
|