Move velocikey to within rgblight (#22123)
This commit is contained in:
parent
1052c03a5b
commit
339bff6339
16 changed files with 124 additions and 150 deletions
|
@ -248,7 +248,8 @@ typedef union {
|
|||
uint64_t raw;
|
||||
struct {
|
||||
bool enable : 1;
|
||||
uint8_t mode : 7;
|
||||
bool velocikey : 1;
|
||||
uint8_t mode : 6;
|
||||
uint8_t hue : 8;
|
||||
uint8_t sat : 8;
|
||||
uint8_t val : 8;
|
||||
|
@ -385,14 +386,15 @@ void rgblight_mode_eeprom_helper(uint8_t mode, bool write_to_eeprom);
|
|||
#define EZ_RGB(val) rgblight_show_solid_color((val >> 16) & 0xFF, (val >> 8) & 0xFF, val & 0xFF)
|
||||
void rgblight_show_solid_color(uint8_t r, uint8_t g, uint8_t b);
|
||||
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
void preprocess_rgblight(void);
|
||||
void rgblight_task(void);
|
||||
|
||||
#ifdef RGBLIGHT_USE_TIMER
|
||||
void rgblight_timer_init(void);
|
||||
void rgblight_timer_enable(void);
|
||||
void rgblight_timer_disable(void);
|
||||
void rgblight_timer_toggle(void);
|
||||
#else
|
||||
# define rgblight_task()
|
||||
# define rgblight_timer_init()
|
||||
# define rgblight_timer_enable()
|
||||
# define rgblight_timer_disable()
|
||||
|
@ -446,3 +448,14 @@ void rgblight_effect_alternating(animation_status_t *anim);
|
|||
void rgblight_effect_twinkle(animation_status_t *anim);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef VELOCIKEY_ENABLE
|
||||
bool rgblight_velocikey_enabled(void);
|
||||
void rgblight_velocikey_toggle(void);
|
||||
void rgblight_velocikey_accelerate(void);
|
||||
void rgblight_velocikey_decelerate(void);
|
||||
uint8_t rgblight_velocikey_match_speed(uint8_t minValue, uint8_t maxValue);
|
||||
|
||||
# define velocikey_enabled rgblight_velocikey_enabled
|
||||
# define velocikey_toggle rgblight_velocikey_toggle
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue