mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-11 02:59:09 +00:00
Keymap: Fixed a problem with underglow with froggy keymap (#4580)
This commit is contained in:
parent
614b3a0f7c
commit
b8db0b26b1
1 changed files with 25 additions and 5 deletions
|
@ -593,19 +593,39 @@ void matrix_scan_user(void) {
|
||||||
if(!RGBAnimation){
|
if(!RGBAnimation){
|
||||||
switch (layer_state) {
|
switch (layer_state) {
|
||||||
case L_BASE:
|
case L_BASE:
|
||||||
|
#ifdef RGBLED_BACK
|
||||||
led_ripple_effect(0,112,127);
|
led_ripple_effect(0,112,127);
|
||||||
|
#else
|
||||||
|
rgblight_setrgb(0,112,127);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case L_OPT:
|
case L_OPT:
|
||||||
|
#ifdef RGBLED_BACK
|
||||||
led_ripple_effect(127,0,100);
|
led_ripple_effect(127,0,100);
|
||||||
|
#else
|
||||||
|
rgblight_setrgb(127,0,100);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case L_NUM:
|
case L_NUM:
|
||||||
|
#ifdef RGBLED_BACK
|
||||||
led_ripple_effect(127,23,0);
|
led_ripple_effect(127,23,0);
|
||||||
|
#else
|
||||||
|
rgblight_setrgb(127,23,0);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case L_SYM:
|
case L_SYM:
|
||||||
|
#ifdef RGBLED_BACK
|
||||||
led_ripple_effect(0,127,0);
|
led_ripple_effect(0,127,0);
|
||||||
|
#else
|
||||||
|
rgblight_setrgb(0,127,0);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case L_FUNC:
|
case L_FUNC:
|
||||||
|
#ifdef RGBLED_BACK
|
||||||
led_ripple_effect(127,0,61);
|
led_ripple_effect(127,0,61);
|
||||||
|
#else
|
||||||
|
rgblight_setrgb(127,0,61);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue