|
|
|
@ -10,17 +10,17 @@ void rgb_matrix_increase_flags(void)
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
|
|
|
|
rgb_matrix_set_color_all(0, 0, 0);
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
|
|
|
|
rgb_matrix_disable_noeeprom();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LED_FLAG_UNDERGLOW: {
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
|
|
|
|
rgb_matrix_disable_noeeprom();
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_ALL);
|
|
|
|
|
rgb_matrix_set_color_all(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default: {
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_ALL);
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
|
|
|
|
rgb_matrix_enable_noeeprom();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
@ -31,8 +31,8 @@ void rgb_matrix_decrease_flags(void)
|
|
|
|
|
{
|
|
|
|
|
switch (rgb_matrix_get_flags()) {
|
|
|
|
|
case LED_FLAG_ALL: {
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
|
|
|
|
rgb_matrix_disable_noeeprom();
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
|
|
|
|
rgb_matrix_set_color_all(0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
|
|
|
|
@ -41,12 +41,12 @@ void rgb_matrix_decrease_flags(void)
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case LED_FLAG_UNDERGLOW: {
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
|
|
|
|
|
rgb_matrix_set_color_all(0, 0, 0);
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_NONE);
|
|
|
|
|
rgb_matrix_disable_noeeprom();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default: {
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
|
|
|
|
|
rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
|
|
|
|
|
rgb_matrix_enable_noeeprom();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|