aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/bm68rgb/bm68rgb.c39
-rw-r--r--keyboards/bm68rgb/config.h26
-rw-r--r--keyboards/bm68rgb/keymaps/default/keymap.c2
-rw-r--r--keyboards/bm68rgb/rules.mk4
4 files changed, 17 insertions, 54 deletions
diff --git a/keyboards/bm68rgb/bm68rgb.c b/keyboards/bm68rgb/bm68rgb.c
index 4e49a96ca..e16292498 100644
--- a/keyboards/bm68rgb/bm68rgb.c
+++ b/keyboards/bm68rgb/bm68rgb.c
@@ -26,34 +26,19 @@ led_config_t g_led_config = { {
26 { 58, 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, 64, 65, 66, 67 } 26 { 58, 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, 64, 65, 66, 67 }
27}, { 27}, {
28 // LED Index to Physical Position 28 // LED Index to Physical Position
29 //I have no idea how to calculate this based on a templete, nor do have a good enough ruler to measure this. 29 { 0, 0}, { 15, 0}, { 30, 0}, { 45, 0}, { 60, 0}, { 75, 0}, { 90, 0}, {105, 0}, {120, 0}, {135, 0}, {150, 0}, {165, 0}, {180, 0}, {202, 0}, {225, 0}, // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete
30 // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete 30 { 4, 16}, { 22, 16}, { 37, 16}, { 52, 16}, { 67, 16}, { 82, 16}, { 97, 16}, {112, 16}, {127, 16}, {142, 16}, {157, 16}, {172, 16}, {187, 16}, {206, 16}, {225, 16}, // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home
31 { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 120, 0 }, { 135, 0 }, { 150, 0 }, { 165, 0 }, { 180, 0 }, { 202, 0 }, { 225, 0 }, 31 { 6, 32}, { 26, 32}, { 41, 32}, { 56, 32}, { 71, 32}, { 86, 32}, {101, 32}, {116, 32}, {131, 32}, {146, 32}, {161, 32}, {176, 32}, {201, 32}, {225, 32}, // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
32 // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home 32 { 9, 48}, { 34, 48}, { 49, 48}, { 64, 48}, { 79, 48}, { 94, 48}, {109, 48}, {124, 48}, {139, 48}, {154, 48}, {169, 48}, {189, 48}, { 10, 48}, {225, 48}, // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
33 { 4, 16 }, { 22, 16 }, { 37, 16 }, { 52, 16 }, { 67, 16 }, { 82, 16 }, { 97, 16 }, { 112, 16 }, { 127, 16 }, { 142, 16 }, { 157, 16 }, { 172, 16 }, { 187, 16 }, { 206, 16 }, { 225, 16 }, 33 { 2, 64}, { 21, 64}, { 39, 64}, { 94, 64}, {148, 64}, {163, 64}, {178, 64}, {193, 64}, {208, 64}, {225, 64}, // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
34 // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up 34 {185, 45}, {160, 45}, {125, 45}, { 95, 45}, { 60, 45}, { 25, 45} // UNDERGLOW
35 { 6, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 176, 32 }, { 201, 32 }, { 225, 32 },
36 // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
37 { 9, 48 }, { 34, 48 }, { 49, 48 }, { 64, 48 }, { 79, 48 }, { 94, 48 }, { 109, 48 }, { 124, 48 }, { 139, 48 }, { 154, 48 }, { 169, 48 }, { 189, 48 }, { 210, 48 }, { 225, 48 },
38 // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
39 { 2, 64 }, { 21, 64 }, { 39, 64 }, { 94, 64 }, { 148, 64 }, { 163, 64 }, { 178, 64 }, { 193, 64 }, { 208, 64 }, { 225, 64 },
40 // UNDERGLOW
41 { 185, 45 }, { 160, 45 }, { 125, 45 }, { 95, 45 }, { 60, 45 }, { 25, 45 }
42}, { 35}, {
43 // LED Index to Flag 36 // LED Index to Flag
44 //need to recheck what should be a modifier 37 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete
45 38 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home
46 // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete 39 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
47 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 40 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
48 // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home 41 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
49 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 42 2, 2, 2, 2, 2, 2 // UNDERGLOW
50 // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
51 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
52 // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
53 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
54 // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
55 1, 1, 1, 4, 1, 1, 1, 1, 1, 1,
56 // UNDERGLOW
57 2, 2, 2, 2, 2, 2
58} }; 43} };
59#endif 44#endif
diff --git a/keyboards/bm68rgb/config.h b/keyboards/bm68rgb/config.h
index 250b9d734..7fa2e7796 100644
--- a/keyboards/bm68rgb/config.h
+++ b/keyboards/bm68rgb/config.h
@@ -56,30 +56,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
56// The number of LEDs connected 56// The number of LEDs connected
57#define DRIVER_LED_TOTAL 74 57#define DRIVER_LED_TOTAL 74
58#ifdef RGB_DI_PIN 58#ifdef RGB_DI_PIN
59#define RGBLED_NUM 74 59 #define RGBLED_NUM 74
60//# define RGBLIGHT_HUE_STEP 8 60 #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
61//# define RGBLIGHT_SAT_STEP 8
62//# define RGBLIGHT_VAL_STEP 8
63//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
64//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
65/*== all animations enable ==*/
66//# define RGBLIGHT_ANIMATIONS
67/*== or choose animations ==*/
68//# define RGBLIGHT_EFFECT_BREATHING
69//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
70//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
71//# define RGBLIGHT_EFFECT_SNAKE
72//# define RGBLIGHT_EFFECT_KNIGHT
73//# define RGBLIGHT_EFFECT_CHRISTMAS
74//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
75//# define RGBLIGHT_EFFECT_RGB_TEST
76//# define RGBLIGHT_EFFECT_ALTERNATING
77/*== customize breathing effect ==*/
78/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
79//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
80/*==== use exp() and sin() ====*/
81//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
82//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
83#endif 61#endif
84 62
85/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 63/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
diff --git a/keyboards/bm68rgb/keymaps/default/keymap.c b/keyboards/bm68rgb/keymaps/default/keymap.c
index eec3b3c26..b4bc5cb59 100644
--- a/keyboards/bm68rgb/keymaps/default/keymap.c
+++ b/keyboards/bm68rgb/keymaps/default/keymap.c
@@ -41,7 +41,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41}; 41};
42 42
43/* 43/*
44Templete 44Template
45 [ ] = LAYOUT_65_ansi( 45 [ ] = LAYOUT_65_ansi(
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
diff --git a/keyboards/bm68rgb/rules.mk b/keyboards/bm68rgb/rules.mk
index 15d81ded8..ce5ad8447 100644
--- a/keyboards/bm68rgb/rules.mk
+++ b/keyboards/bm68rgb/rules.mk
@@ -7,7 +7,7 @@ BOOTLOADER = atmel-dfu
7# Build Options 7# Build Options
8# change yes to no to disable 8# change yes to no to disable
9# 9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration 10BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys 11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control 12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug 13CONSOLE_ENABLE = no # Console for debug
@@ -22,6 +22,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output 22AUDIO_ENABLE = no # Audio output
23RGB_MATRIX_ENABLE = yes 23RGB_MATRIX_ENABLE = yes
24RGB_MATRIX_DRIVER = WS2812 24RGB_MATRIX_DRIVER = WS2812
25#LTO_ENABLE = yes 25LTO_ENABLE = yes
26 26
27LAYOUTS = 65_ansi 27LAYOUTS = 65_ansi