diff options
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/default/config.h | 2 | ||||
| -rw-r--r-- | keyboards/ergodox_ez/keymaps/default/keymap.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/ergodox_ez/keymaps/default/config.h b/keyboards/ergodox_ez/keymaps/default/config.h index 850848c01..e2e2c6bdc 100644 --- a/keyboards/ergodox_ez/keymaps/default/config.h +++ b/keyboards/ergodox_ez/keymaps/default/config.h | |||
| @@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | 20 | ||
| 21 | #include "config_common.h" | 21 | #include "config_common.h" |
| 22 | 22 | ||
| 23 | #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF | 23 | // #define RGBLIGHT_COLOR_LAYER_0 0x00, 0x00, 0xFF |
| 24 | #define RGBLIGHT_COLOR_LAYER_1 0xFF, 0x00, 0x00 | 24 | #define RGBLIGHT_COLOR_LAYER_1 0xFF, 0x00, 0x00 |
| 25 | #define RGBLIGHT_COLOR_LAYER_2 0x00, 0xFF, 0x00 | 25 | #define RGBLIGHT_COLOR_LAYER_2 0x00, 0xFF, 0x00 |
| 26 | #define RGBLIGHT_COLOR_LAYER_3 0xFF, 0xFF, 0x00 | 26 | #define RGBLIGHT_COLOR_LAYER_3 0xFF, 0xFF, 0x00 |
diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c index ccb4ae3ad..e0f6e21b2 100644 --- a/keyboards/ergodox_ez/keymaps/default/keymap.c +++ b/keyboards/ergodox_ez/keymaps/default/keymap.c | |||
| @@ -214,6 +214,8 @@ uint32_t layer_state_set_user(uint32_t state) { | |||
| 214 | case 0: | 214 | case 0: |
| 215 | #ifdef RGBLIGHT_COLOR_LAYER_0 | 215 | #ifdef RGBLIGHT_COLOR_LAYER_0 |
| 216 | rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0); | 216 | rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0); |
| 217 | #else | ||
| 218 | rgblight_init(); | ||
| 217 | #endif | 219 | #endif |
| 218 | break; | 220 | break; |
| 219 | case 1: | 221 | case 1: |
