diff options
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/config.h | 121 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/info.json | 76 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/keymaps/default/keymap.c | 40 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/keymaps/via/keymap.c | 58 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/mk61rgbansi.c | 13 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/mk61rgbansi.h | 32 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/readme.md | 14 | ||||
-rw-r--r-- | keyboards/fjlabs/mk61rgbansi/rules.mk | 26 |
9 files changed, 381 insertions, 0 deletions
diff --git a/keyboards/fjlabs/mk61rgbansi/config.h b/keyboards/fjlabs/mk61rgbansi/config.h new file mode 100644 index 000000000..4d459b6f8 --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/config.h | |||
@@ -0,0 +1,121 @@ | |||
1 | /* | ||
2 | Copyright 2021 <me@fjlaboratories.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0x7074 // FJLabs | ||
24 | #define PRODUCT_ID 0x1011 // mk61-rgb-ansi | ||
25 | #define DEVICE_VER 0x0001 // Version 1 | ||
26 | #define MANUFACTURER Mechanical Keyboards LLC | ||
27 | #define PRODUCT MK61-RGB-ANSI | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 14 | ||
32 | |||
33 | /* | ||
34 | * Keyboard Matrix Assignments | ||
35 | * | ||
36 | * Change this to how you wired your keyboard | ||
37 | * COLS: AVR pins used for columns, left to right | ||
38 | * ROWS: AVR pins used for rows, top to bottom | ||
39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
41 | * | ||
42 | */ | ||
43 | |||
44 | // Checked with Eagle Schematic | ||
45 | #define MATRIX_ROW_PINS { F0, F1, F4, F5, F6 } | ||
46 | #define MATRIX_COL_PINS { C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, B3, B2, B1 } | ||
47 | #define UNUSED_PINS | ||
48 | |||
49 | /* COL2ROW or ROW2COL */ | ||
50 | #define DIODE_DIRECTION COL2ROW | ||
51 | |||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
53 | #define DEBOUNCE 5 | ||
54 | |||
55 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
56 | //#define MATRIX_HAS_GHOST | ||
57 | |||
58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
59 | #define LOCKING_SUPPORT_ENABLE | ||
60 | /* Locking resynchronize hack */ | ||
61 | #define LOCKING_RESYNC_ENABLE | ||
62 | |||
63 | /* Define RGB Underglow */ | ||
64 | #define RGB_DI_PIN F7 | ||
65 | #define RGBLED_NUM 64 | ||
66 | #define RGBLIGHT_EFFECT_BREATHING | ||
67 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
68 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
69 | #define RGBLIGHT_EFFECT_SNAKE | ||
70 | #define RGBLIGHT_EFFECT_KNIGHT | ||
71 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
72 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
73 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
74 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
75 | #define RGBLIGHT_EFFECT_TWINKLE | ||
76 | #define RGBLIGHT_LIMIT_VAL 108 | ||
77 | #define RGB_VAL_STEP 12 | ||
78 | #define RGBLIGHT_DEFAULT_SPD 144 | ||
79 | #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL | ||
80 | /* #define RGBLIGHT_LAYER_BLINK*/ | ||
81 | |||
82 | /* Define less important options */ | ||
83 | |||
84 | /* | ||
85 | * Force NKRO | ||
86 | * | ||
87 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
88 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
89 | * makefile for this to work.) | ||
90 | * | ||
91 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
92 | * until the next keyboard reset. | ||
93 | * | ||
94 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
95 | * fully operational during normal computer usage. | ||
96 | * | ||
97 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
98 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
99 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
100 | * power-up. | ||
101 | * | ||
102 | */ | ||
103 | //#define FORCE_NKRO | ||
104 | |||
105 | /* | ||
106 | * Feature disable options | ||
107 | * These options are also useful to firmware size reduction. | ||
108 | */ | ||
109 | |||
110 | /* disable debug print */ | ||
111 | //#define NO_DEBUG | ||
112 | |||
113 | /* disable print */ | ||
114 | //#define NO_PRINT | ||
115 | |||
116 | /* disable action features */ | ||
117 | //#define NO_ACTION_LAYER | ||
118 | //#define NO_ACTION_TAPPING | ||
119 | //#define NO_ACTION_ONESHOT | ||
120 | #define NO_ACTION_MACRO | ||
121 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/info.json b/keyboards/fjlabs/mk61rgbansi/info.json new file mode 100644 index 000000000..84cc8a46a --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/info.json | |||
@@ -0,0 +1,76 @@ | |||
1 | { | ||
2 | "keyboard_name": "MK61-RGB-ANSI", | ||
3 | "url": "https://www.fjlaboratories.com/", | ||
4 | "maintainer": "Mechanical Keyboards, LLC", | ||
5 | "layouts": { | ||
6 | "LAYOUT_60_ansi": { | ||
7 | "layout": [ | ||
8 | {"x": 0, "y": 0}, | ||
9 | {"x": 1, "y": 0}, | ||
10 | {"x": 2, "y": 0}, | ||
11 | {"x": 3, "y": 0}, | ||
12 | {"x": 4, "y": 0}, | ||
13 | {"x": 5, "y": 0}, | ||
14 | {"x": 6, "y": 0}, | ||
15 | {"x": 7, "y": 0}, | ||
16 | {"x": 8, "y": 0}, | ||
17 | {"x": 9, "y": 0}, | ||
18 | {"x": 10, "y": 0}, | ||
19 | {"x": 11, "y": 0}, | ||
20 | {"x": 12, "y": 0}, | ||
21 | {"x": 13, "y": 0, "w": 2}, | ||
22 | |||
23 | {"x": 0, "y": 1, "w": 1.5}, | ||
24 | {"x": 1.5, "y": 1}, | ||
25 | {"x": 2.5, "y": 1}, | ||
26 | {"x": 3.5, "y": 1}, | ||
27 | {"x": 4.5, "y": 1}, | ||
28 | {"x": 5.5, "y": 1}, | ||
29 | {"x": 6.5, "y": 1}, | ||
30 | {"x": 7.5, "y": 1}, | ||
31 | {"x": 8.5, "y": 1}, | ||
32 | {"x": 9.5, "y": 1}, | ||
33 | {"x": 10.5, "y": 1}, | ||
34 | {"x": 11.5, "y": 1}, | ||
35 | {"x": 12.5, "y": 1}, | ||
36 | {"x": 13.5, "y": 1, "w": 1.5}, | ||
37 | |||
38 | {"x": 0, "y": 2, "w": 1.75}, | ||
39 | {"x": 1.75, "y": 2}, | ||
40 | {"x": 2.75, "y": 2}, | ||
41 | {"x": 3.75, "y": 2}, | ||
42 | {"x": 4.75, "y": 2}, | ||
43 | {"x": 5.75, "y": 2}, | ||
44 | {"x": 6.75, "y": 2}, | ||
45 | {"x": 7.75, "y": 2}, | ||
46 | {"x": 8.75, "y": 2}, | ||
47 | {"x": 9.75, "y": 2}, | ||
48 | {"x": 10.75, "y": 2}, | ||
49 | {"x": 11.75, "y": 2}, | ||
50 | {"x": 12.75, "y": 2, "w": 2.25}, | ||
51 | |||
52 | {"x": 0, "y": 3, "w": 2.25}, | ||
53 | {"x": 2.25, "y": 3}, | ||
54 | {"x": 3.25, "y": 3}, | ||
55 | {"x": 4.25, "y": 3}, | ||
56 | {"x": 5.25, "y": 3}, | ||
57 | {"x": 6.25, "y": 3}, | ||
58 | {"x": 7.25, "y": 3}, | ||
59 | {"x": 8.25, "y": 3}, | ||
60 | {"x": 9.25, "y": 3}, | ||
61 | {"x": 10.25, "y": 3}, | ||
62 | {"x": 11.25, "y": 3}, | ||
63 | {"x": 12.25, "y": 3, "w": 2.75}, | ||
64 | |||
65 | {"x": 0, "y": 4, "w": 1.25}, | ||
66 | {"x": 1.25, "y": 4, "w": 1.25}, | ||
67 | {"x": 2.5, "y": 4, "w": 1.25}, | ||
68 | {"x": 3.75, "y": 4, "w": 6.25}, | ||
69 | {"x": 10, "y": 4, "w": 1.25}, | ||
70 | {"x": 11.25, "y": 4, "w": 1.25}, | ||
71 | {"x": 12.5, "y": 4, "w": 1.25}, | ||
72 | {"x": 13.75, "y": 4, "w": 1.25} | ||
73 | ] | ||
74 | } | ||
75 | } | ||
76 | } | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/keymaps/default/keymap.c b/keyboards/fjlabs/mk61rgbansi/keymaps/default/keymap.c new file mode 100644 index 000000000..7873f0e5e --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/keymaps/default/keymap.c | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | Copyright 2021 <me@fjlaboratories.com> | ||
3 | This program is free software: you can redistribute it and/or modify | ||
4 | it under the terms of the GNU General Public License as published by | ||
5 | the Free Software Foundation, either version 2 of the License, or | ||
6 | (at your option) any later version. | ||
7 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | |||
15 | #include QMK_KEYBOARD_H | ||
16 | |||
17 | enum layers { | ||
18 | _LAYER0, | ||
19 | _LAYER1, | ||
20 | }; | ||
21 | |||
22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
23 | |||
24 | [_LAYER0] = LAYOUT_60_ansi( | ||
25 | KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, | ||
26 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
27 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
28 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
29 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTRL | ||
30 | ), | ||
31 | |||
32 | [_LAYER1] = LAYOUT_60_ansi( | ||
33 | KC_GESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | ||
34 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUSE, RESET, | ||
35 | KC_TRNS, RGB_SPI, RGB_SPD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, NK_TOGG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
38 | ) | ||
39 | |||
40 | }; \ No newline at end of file | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/keymaps/via/keymap.c b/keyboards/fjlabs/mk61rgbansi/keymaps/via/keymap.c new file mode 100644 index 000000000..2e4dac7fc --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/keymaps/via/keymap.c | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | Copyright 2021 <me@fjlaboratories.com> | ||
3 | This program is free software: you can redistribute it and/or modify | ||
4 | it under the terms of the GNU General Public License as published by | ||
5 | the Free Software Foundation, either version 2 of the License, or | ||
6 | (at your option) any later version. | ||
7 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | |||
15 | #include QMK_KEYBOARD_H | ||
16 | |||
17 | enum layers { | ||
18 | _LAYER0, | ||
19 | _LAYER1, | ||
20 | _LAYER2, | ||
21 | _LAYER3, | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | |||
26 | [_LAYER0] = LAYOUT_60_ansi( | ||
27 | KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, | ||
28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
29 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTRL | ||
32 | ), | ||
33 | |||
34 | [_LAYER1] = LAYOUT_60_ansi( | ||
35 | KC_GESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, | ||
36 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUSE, RESET, | ||
37 | KC_TRNS, RGB_SPI, RGB_SPD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, NK_TOGG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
40 | ), | ||
41 | |||
42 | [_LAYER2] = LAYOUT_60_ansi( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ), | ||
49 | |||
50 | [_LAYER3] = LAYOUT_60_ansi( | ||
51 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
52 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
56 | ), | ||
57 | |||
58 | }; | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/keymaps/via/rules.mk b/keyboards/fjlabs/mk61rgbansi/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/fjlabs/mk61rgbansi/mk61rgbansi.c b/keyboards/fjlabs/mk61rgbansi/mk61rgbansi.c new file mode 100644 index 000000000..5bf82ad44 --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/mk61rgbansi.c | |||
@@ -0,0 +1,13 @@ | |||
1 | /* Copyright 2021 <me@fjlaboratories.com> | ||
2 | This program is free software: you can redistribute it and/or modify | ||
3 | it under the terms of the GNU General Public License as published by | ||
4 | the Free Software Foundation, either version 2 of the License, or | ||
5 | (at your option) any later version. | ||
6 | This program is distributed in the hope that it will be useful, | ||
7 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
9 | GNU General Public License for more details. | ||
10 | You should have received a copy of the GNU General Public License | ||
11 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
12 | */ | ||
13 | #include "mk61rgbansi.h" | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/mk61rgbansi.h b/keyboards/fjlabs/mk61rgbansi/mk61rgbansi.h new file mode 100644 index 000000000..8ab4873e0 --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/mk61rgbansi.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | Copyright 2021 <me@fjlaboratories.com> | ||
3 | This program is free software: you can redistribute it and/or modify | ||
4 | it under the terms of the GNU General Public License as published by | ||
5 | the Free Software Foundation, either version 2 of the License, or | ||
6 | (at your option) any later version. | ||
7 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | |||
15 | #pragma once | ||
16 | |||
17 | #include "quantum.h" | ||
18 | |||
19 | /* MK61-RGB-ANSI Keymap Definitions */ | ||
20 | #define LAYOUT_60_ansi( \ | ||
21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | ||
24 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3C, \ | ||
25 | K40, K41, K42, K45, K49, K4A, K4C, K4D \ | ||
26 | ) { \ | ||
27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D }, \ | ||
30 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, KC_NO, K3C, KC_NO }, \ | ||
31 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, KC_NO, K4C, K4D } \ | ||
32 | } | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/readme.md b/keyboards/fjlabs/mk61rgbansi/readme.md new file mode 100644 index 000000000..6425f0940 --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/readme.md | |||
@@ -0,0 +1,14 @@ | |||
1 | # Mechanical Keyboards, LLC MK61-RGB-ANSI | ||
2 | |||
3 | The following is the QMK Firmware for the Mechanical Keyboards, LLC MK61-RGB-ANSI PCB. | ||
4 | |||
5 | --- | ||
6 | |||
7 | * Keyboard Maintainer: Mechanical Keyboards, LLC | ||
8 | * Hardware Supported: MK61-RGB-ANSI | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make fjlabs/mk61-rgb-ansi:default | ||
13 | |||
14 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). You can enter the bootloader by pressing the reset button on the back of the PCB. | ||
diff --git a/keyboards/fjlabs/mk61rgbansi/rules.mk b/keyboards/fjlabs/mk61rgbansi/rules.mk new file mode 100644 index 000000000..dbd20b9e1 --- /dev/null +++ b/keyboards/fjlabs/mk61rgbansi/rules.mk | |||
@@ -0,0 +1,26 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency | ||
5 | F_CPU = 8000000 | ||
6 | |||
7 | # Bootloader selection | ||
8 | BOOTLOADER = atmel-dfu | ||
9 | |||
10 | # Build Options | ||
11 | # change yes to no to disable | ||
12 | # | ||
13 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
16 | CONSOLE_ENABLE = no # Console for debug | ||
17 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
21 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
23 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
24 | AUDIO_ENABLE = no # Audio output | ||
25 | |||
26 | LAYOUTS = 60_ansi | ||