zmk_mf68/app/include/zmk/rgb_underglow.h

29 lines
894 B
C
Raw Normal View History

2020-07-26 05:53:42 +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
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();
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);
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);
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);
int zmk_rgb_underglow_set_hsb(struct zmk_led_hsb color);