Selaa lähdekoodia

Support separated LED of switches for Staryu

old_master
Kai Ryu 9 vuotta sitten
vanhempi
commit
660e372620
1 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 7
    3
      keyboard/staryu/backlight.c

+ 7
- 3
keyboard/staryu/backlight.c Näytä tiedosto

if (backlight_config.enable) { if (backlight_config.enable) {
if (backlight_config.level == 7) { if (backlight_config.level == 7) {
if (event.pressed) { if (event.pressed) {
softpwm_led_decrease_all(32);
softpwm_led_decrease(event.key.col, 32);
} }
} }
if (backlight_config.level == 8) { if (backlight_config.level == 8) {
if (event.pressed) { if (event.pressed) {
softpwm_led_increase_all(32);
softpwm_led_increase(event.key.col, 32);
} }
} }
} }
#ifdef CUSTOM_LED_ENABLE #ifdef CUSTOM_LED_ENABLE
void fading_led_custom(uint8_t *value) void fading_led_custom(uint8_t *value)
{ {
rgb_set_brightness(*value);
uint8_t max = 0;
for (uint8_t i = 0; i < LED_COUNT; i++) {
if (value[i] > max) max = value[i];
}
rgb_set_brightness(max);
} }


void breathing_led_custom(uint8_t *value) void breathing_led_custom(uint8_t *value)