summaryrefslogtreecommitdiffstats
path: root/layouts/community/ergodox/berfarah/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/ergodox/berfarah/keymap.c')
-rw-r--r--layouts/community/ergodox/berfarah/keymap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/community/ergodox/berfarah/keymap.c b/layouts/community/ergodox/berfarah/keymap.c
index bc639b189..a0a107785 100644
--- a/layouts/community/ergodox/berfarah/keymap.c
+++ b/layouts/community/ergodox/berfarah/keymap.c
@@ -183,6 +183,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
};
+#ifdef RGBLIGHT_ENABLE
/*
* Led Configuration
*/
@@ -222,6 +223,7 @@ static inline void mod_layer_with_rgb(keyrecord_t *record, uint8_t layer) {
bf_set_led(currentLayer);
};
};
+#endif
/*
* Custom keycodes
@@ -240,12 +242,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
SEND_STRING(" ");
}
return false; break;
+ #ifdef RGBLIGHT_ENABLE
case BF_NUMS:
mod_layer_with_rgb(record, NUMS);
return false; break;
case BF_MOVE:
mod_layer_with_rgb(record, MOVE);
return false; break;
+ #endif
}
return true;
@@ -255,7 +259,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
* Active Routines
*/
void matrix_init_user(void) {
+#ifdef RGBLIGHT_ENABLE
bf_set_led(QWERTY);
+#endif
};
// Runs constantly in the background, in a loop.