summaryrefslogtreecommitdiffstats
path: root/keyboards/keychron/q5_pro/ansi_encoder
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keychron/q5_pro/ansi_encoder')
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/ansi_encoder.c1
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/config.h10
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/keymaps/default/keymap.c2
-rwxr-xr-xkeyboards/keychron/q5_pro/ansi_encoder/keymaps/via/keymap.c2
4 files changed, 10 insertions, 5 deletions
diff --git a/keyboards/keychron/q5_pro/ansi_encoder/ansi_encoder.c b/keyboards/keychron/q5_pro/ansi_encoder/ansi_encoder.c
index c323cad5bc..ec0e1d0a9c 100755
--- a/keyboards/keychron/q5_pro/ansi_encoder/ansi_encoder.c
+++ b/keyboards/keychron/q5_pro/ansi_encoder/ansi_encoder.c
@@ -42,6 +42,7 @@ const ckled2001_led g_ckled2001_leds[RGB_MATRIX_LED_COUNT] = {
{0, L_5, J_5, K_5},
{0, L_6, J_6, K_6},
{0, L_7, J_7, K_7},
+ // {0, L_8, J_8, K_8}, // Knob
{0, C_1, A_1, B_1},
{0, C_2, A_2, B_2},
diff --git a/keyboards/keychron/q5_pro/ansi_encoder/config.h b/keyboards/keychron/q5_pro/ansi_encoder/config.h
index e971fb17f3..9a99efabdb 100755
--- a/keyboards/keychron/q5_pro/ansi_encoder/config.h
+++ b/keyboards/keychron/q5_pro/ansi_encoder/config.h
@@ -21,6 +21,8 @@
# define DRIVER_COUNT 2
# define DRIVER_ADDR_1 0b1110111
# define DRIVER_ADDR_2 0b1110100
+
+/* RGB Matrix Configuration */
# define DRIVER_1_LED_TOTAL 55
# define DRIVER_2_LED_TOTAL 46
# define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
@@ -34,16 +36,18 @@
/* Turn off backllit if brightness value is low */
# define RGB_MATRIX_BRIGHTNESS_TURN_OFF_VAL 48
-/* Indication led */
+/* Indication led index */
# define NUM_LOCK_INDEX 32
# define CAPS_LOCK_INDEX 55
# define LOW_BAT_IND_INDEX 92
+// RGB Matrix Animation modes. Explicitly enabled
+// For full list of effects, see:
+// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
# define RGB_MATRIX_KEYPRESSES
/* Set LED driver current */
# define CKLED2001_CURRENT_TUNE \
- { 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28, 0x28 }
-
+ { 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30 }
#endif
diff --git a/keyboards/keychron/q5_pro/ansi_encoder/keymaps/default/keymap.c b/keyboards/keychron/q5_pro/ansi_encoder/keymaps/default/keymap.c
index 0a788d3623..23ba5c3678 100755
--- a/keyboards/keychron/q5_pro/ansi_encoder/keymaps/default/keymap.c
+++ b/keyboards/keychron/q5_pro/ansi_encoder/keymaps/default/keymap.c
@@ -16,7 +16,6 @@
#include QMK_KEYBOARD_H
-// clang-format off
enum layers{
MAC_BASE,
MAC_FN,
@@ -24,6 +23,7 @@ enum layers{
WIN_FN,
};
+// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[MAC_BASE] = LAYOUT_102_ansi(
KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_F13, KC_F14, KC_F15, KC_MUTE,
diff --git a/keyboards/keychron/q5_pro/ansi_encoder/keymaps/via/keymap.c b/keyboards/keychron/q5_pro/ansi_encoder/keymaps/via/keymap.c
index 0a788d3623..23ba5c3678 100755
--- a/keyboards/keychron/q5_pro/ansi_encoder/keymaps/via/keymap.c
+++ b/keyboards/keychron/q5_pro/ansi_encoder/keymaps/via/keymap.c
@@ -16,7 +16,6 @@
#include QMK_KEYBOARD_H
-// clang-format off
enum layers{
MAC_BASE,
MAC_FN,
@@ -24,6 +23,7 @@ enum layers{
WIN_FN,
};
+// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[MAC_BASE] = LAYOUT_102_ansi(
KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_F13, KC_F14, KC_F15, KC_MUTE,