예제 #1
0
void hook_matrix_change(keyevent_t event)
{
    if (backlight_config.enable) {
        if (backlight_config.level == 7) {
            if (event.pressed) {
                fading_led_set_delay_all(32);
                softpwm_led_decrease_all(16);
            }
        }
        if (backlight_config.level == 8) {
            if (event.pressed) {
                fading_led_set_delay_all(32);
                softpwm_led_increase_all(16);
            }
        }
    }
}
예제 #2
0
void action_keyevent(keyevent_t event)
{
    if (backlight_config.enable) {
        if (backlight_config.level == 7) {
            if (event.pressed) {
                fading_led_set_delay_all(64);
                softpwm_led_decrease_all(32);
            }
        }
        if (backlight_config.level == 8) {
            if (event.pressed) {
                fading_led_set_delay_all(64);
                softpwm_led_increase_all(32);
            }
        }
    }
}
예제 #3
0
void action_keyevent(keyevent_t event)
{
    if (backlight_config.enable) {
        switch (backlight_config.level) {
            case 7:
                if (event.pressed) {
                    fading_led_set_delay_all(64);
                    softpwm_led_decrease_all(32);
                }
                break;;
            case 8:
                if (event.pressed) {
                    fading_led_set_delay_all(64);
                    softpwm_led_increase_all(32);
                }
                break;
        }
    }
}