Clean up RGB LED type (#21859)
This commit is contained in:
parent
1e3095f9cc
commit
41bd4e35a0
63 changed files with 222 additions and 243 deletions
|
@ -66,7 +66,7 @@ const aw9523b_led g_aw9523b_leds[AW9523B_RGB_NUM] = {
|
|||
{AW9523B_P07_PWM, AW9523B_P06_PWM, AW9523B_P05_PWM},
|
||||
};
|
||||
|
||||
void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds)
|
||||
void rgblight_call_driver(rgb_led_t *start_led, uint8_t num_leds)
|
||||
{
|
||||
uint8_t num = num_leds < AW9523B_RGB_NUM ? num_leds : AW9523B_RGB_NUM;
|
||||
|
||||
|
|
|
@ -357,7 +357,7 @@ static void custom_effects(void)
|
|||
effect_funcs[rgb_ring.effect]();
|
||||
}
|
||||
|
||||
void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds)
|
||||
void rgblight_call_driver(rgb_led_t *start_led, uint8_t num_leds)
|
||||
{
|
||||
if (rgb_ring.state != RING_STATE_QMK) {
|
||||
return;
|
||||
|
|
|
@ -20,7 +20,7 @@ extern rgblight_config_t rgblight_config;
|
|||
#if RGBLED_NUM < 7
|
||||
#error "MUST set the RGBLED_NUM bigger than 7"
|
||||
#endif
|
||||
LED_TYPE noah_leds[RGBLED_NUM];
|
||||
rgb_led_t noah_leds[RGBLED_NUM];
|
||||
static bool noah_led_mode = false;
|
||||
void rgblight_set(void) {
|
||||
memset(&noah_leds[0], 0, sizeof(noah_leds));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue