diff options
author | MakotoKurauchi <pluis@me.com> | 2018-12-10 01:42:28 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-12-09 08:42:28 -0800 |
commit | b8db0b26b1b978bbc510af1fe95ba2a0b7f1f928 (patch) | |
tree | b65f1b89b14c0831dc3fe69d0f81e8f26deecfdc /keyboards/helix/rev2/keymaps/froggy | |
parent | 614b3a0f7ca266f9d625814a3bbd1c2de34f2f0f (diff) |
Keymap: Fixed a problem with underglow with froggy keymap (#4580)
Diffstat (limited to 'keyboards/helix/rev2/keymaps/froggy')
-rw-r--r-- | keyboards/helix/rev2/keymaps/froggy/keymap.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/keyboards/helix/rev2/keymaps/froggy/keymap.c b/keyboards/helix/rev2/keymaps/froggy/keymap.c index 75c6f08114..efd8a29160 100644 --- a/keyboards/helix/rev2/keymaps/froggy/keymap.c +++ b/keyboards/helix/rev2/keymaps/froggy/keymap.c @@ -593,19 +593,39 @@ void matrix_scan_user(void) { if(!RGBAnimation){ switch (layer_state) { case L_BASE: - led_ripple_effect(0,112,127); + #ifdef RGBLED_BACK + led_ripple_effect(0,112,127); + #else + rgblight_setrgb(0,112,127); + #endif break; case L_OPT: - led_ripple_effect(127,0,100); + #ifdef RGBLED_BACK + led_ripple_effect(127,0,100); + #else + rgblight_setrgb(127,0,100); + #endif break; case L_NUM: - led_ripple_effect(127,23,0); + #ifdef RGBLED_BACK + led_ripple_effect(127,23,0); + #else + rgblight_setrgb(127,23,0); + #endif break; case L_SYM: - led_ripple_effect(0,127,0); + #ifdef RGBLED_BACK + led_ripple_effect(0,127,0); + #else + rgblight_setrgb(0,127,0); + #endif break; case L_FUNC: - led_ripple_effect(127,0,61); + #ifdef RGBLED_BACK + led_ripple_effect(127,0,61); + #else + rgblight_setrgb(127,0,61); + #endif break; } } |