From ba88e90ebf72182feb14effc6fd49a4c65bbd66d Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Sun, 5 May 2024 13:53:45 +0500 Subject: [PATCH] Keychron color --- .../q1v2/ansi_encoder/keymaps/hadeed/config.h | 25 +++++++++++++++++++ .../q1v2/ansi_encoder/keymaps/hadeed/keymap.c | 10 ++++---- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/config.h diff --git a/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/config.h b/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/config.h new file mode 100644 index 0000000..990a781 --- /dev/null +++ b/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/config.h @@ -0,0 +1,25 @@ +#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL +#undef ENABLE_RGB_MATRIX_BREATHING +#undef ENABLE_RGB_MATRIX_CYCLE_ALL +#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT +#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN +#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON +#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN +#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL +#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL +#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL +#undef ENABLE_RGB_MATRIX_DUAL_BEACON +#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON +#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS +#undef ENABLE_RGB_MATRIX_PIXEL_RAIN +#undef ENABLE_RGB_MATRIX_TYPING_HEATMAP +#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN +#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE +#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE +#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS +#undef ENABLE_RGB_MATRIX_SPLASH +#undef ENABLE_RGB_MATRIX_SOLID_SPLASH + +#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_SOLID_COLOR +#define RGB_MATRIX_DEFAULT_HUE 11 +#define RGB_MATRIX_DEFAULT_SAT 255 diff --git a/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/keymap.c b/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/keymap.c index 2cef1bd..0d3fbcf 100644 --- a/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/keymap.c +++ b/keyboards/keychron/q1v2/ansi_encoder/keymaps/hadeed/keymap.c @@ -19,11 +19,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { MO(NAV), KC_LCMD, KC_LALT, KC_SPC, KC_RALT, MO(FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), [FN] = LAYOUT_ansi_82( - _______, KC_BRID, KC_BRIU, _______, _______, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, RGB_TOG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, QK_BOOT, _______, - _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______), [NAV] = LAYOUT_ansi_82( @@ -40,7 +40,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, [FN] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI)}, - [NAV] = { ENCODER_CCW_CW(_______, _______)} + [NAV] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI)} }; #endif // ENCODER_MAP_ENABLE