You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
894 B
29 lines
894 B
/* |
|
* Copyright (c) 2020 The ZMK Contributors |
|
* |
|
* SPDX-License-Identifier: MIT |
|
*/ |
|
|
|
#pragma once |
|
|
|
struct zmk_led_hsb { |
|
uint16_t h; |
|
uint8_t s; |
|
uint8_t b; |
|
}; |
|
|
|
int zmk_rgb_underglow_toggle(); |
|
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); |
|
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); |
|
int zmk_rgb_underglow_set_hsb(struct zmk_led_hsb color); |