diff options
27 files changed, 1197 insertions, 0 deletions
diff --git a/keyboards/fjlabs/tf60ansi/config.h b/keyboards/fjlabs/tf60ansi/config.h new file mode 100644 index 000000000..eede9b754 --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/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 0x1004 // tf60ansi | ||
25 | #define DEVICE_VER 0x0001 // Version 1 | ||
26 | #define MANUFACTURER FJLabs | ||
27 | #define PRODUCT TF60ANSI | ||
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/tf60ansi/info.json b/keyboards/fjlabs/tf60ansi/info.json new file mode 100644 index 000000000..4ed7aa91d --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/info.json | |||
@@ -0,0 +1,76 @@ | |||
1 | { | ||
2 | "keyboard_name": "TF60 ANSI", | ||
3 | "url": "https://www.fjlaboratories.com/", | ||
4 | "maintainer": "FJLabs", | ||
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/tf60ansi/keymaps/default/keymap.c b/keyboards/fjlabs/tf60ansi/keymaps/default/keymap.c new file mode 100644 index 000000000..7873f0e5e --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/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/tf60ansi/keymaps/via/keymap.c b/keyboards/fjlabs/tf60ansi/keymaps/via/keymap.c new file mode 100644 index 000000000..2e4dac7fc --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/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/tf60ansi/keymaps/via/rules.mk b/keyboards/fjlabs/tf60ansi/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/fjlabs/tf60ansi/readme.md b/keyboards/fjlabs/tf60ansi/readme.md new file mode 100644 index 000000000..29cbad3fc --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/readme.md | |||
@@ -0,0 +1,27 @@ | |||
1 | # FJLabs TF60 ANSI | ||
2 | |||
3 | The following is the QMK Firmware for the FJLabs TF60 ANSI PCB, a universal tray mount 60% hotswap PCB with per key RGB LED's. | ||
4 | |||
5 | The PCB will feature: | ||
6 | * Kailh Hotswap sockets | ||
7 | * QMK & VIA compatibility | ||
8 | * Per-Key RGB LED's | ||
9 | |||
10 | --- | ||
11 | |||
12 | * Keyboard Maintainer: FJLabs | ||
13 | * Hardware Supported: TF60 ANSI | ||
14 | |||
15 | Make example for this keyboard (after setting up your build environment): | ||
16 | |||
17 | make fjlabs/tf60ansi:default | ||
18 | |||
19 | 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). | ||
20 | |||
21 | ## Bootloader | ||
22 | |||
23 | Enter the bootloader in 3 ways: | ||
24 | |||
25 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
26 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
27 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available \ No newline at end of file | ||
diff --git a/keyboards/fjlabs/tf60ansi/rules.mk b/keyboards/fjlabs/tf60ansi/rules.mk new file mode 100644 index 000000000..6e16f42b8 --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/rules.mk | |||
@@ -0,0 +1,27 @@ | |||
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 | KEYBOARD_LOCK_ENABLE = yes | ||
26 | |||
27 | LAYOUTS = 60_ansi | ||
diff --git a/keyboards/fjlabs/tf60ansi/tf60ansi.c b/keyboards/fjlabs/tf60ansi/tf60ansi.c new file mode 100644 index 000000000..da31f8eaf --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/tf60ansi.c | |||
@@ -0,0 +1,14 @@ | |||
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 | #include "tf60ansi.h" | ||
diff --git a/keyboards/fjlabs/tf60ansi/tf60ansi.h b/keyboards/fjlabs/tf60ansi/tf60ansi.h new file mode 100644 index 000000000..bafc28891 --- /dev/null +++ b/keyboards/fjlabs/tf60ansi/tf60ansi.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 | /* TF60 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/tf60v2/config.h b/keyboards/fjlabs/tf60v2/config.h new file mode 100644 index 000000000..11cb92a33 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/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 0x1005 // tf60v2 | ||
25 | #define DEVICE_VER 0x0001 // Version 1 | ||
26 | #define MANUFACTURER FJLabs | ||
27 | #define PRODUCT TF60v2 | ||
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/tf60v2/info.json b/keyboards/fjlabs/tf60v2/info.json new file mode 100644 index 000000000..c2d6c0287 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/info.json | |||
@@ -0,0 +1,78 @@ | |||
1 | { | ||
2 | "keyboard_name": "TF60 RGB V2", | ||
3 | "url": "https://www.fjlaboratories.com/", | ||
4 | "maintainer": "FJLabs", | ||
5 | "layouts": { | ||
6 | "LAYOUT_60_ansi_arrow": { | ||
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, "w": 1.75}, | ||
63 | {"x": 13, "y": 3}, | ||
64 | {"x": 14, "y": 3}, | ||
65 | |||
66 | {"x": 0, "y": 4, "w": 1.25}, | ||
67 | {"x": 1.25, "y": 4, "w": 1.25}, | ||
68 | {"x": 2.5, "y": 4, "w": 1.25}, | ||
69 | {"x": 3.75, "y": 4, "w": 6.25}, | ||
70 | {"x": 10, "y": 4}, | ||
71 | {"x": 11, "y": 4}, | ||
72 | {"x": 12, "y": 4}, | ||
73 | {"x": 13, "y": 4}, | ||
74 | {"x": 14, "y": 4} | ||
75 | ] | ||
76 | } | ||
77 | } | ||
78 | } | ||
diff --git a/keyboards/fjlabs/tf60v2/keymaps/default/keymap.c b/keyboards/fjlabs/tf60v2/keymaps/default/keymap.c new file mode 100644 index 000000000..a725021a1 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/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_arrow( | ||
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, RSFT_T(KC_SLSH), KC_UP, KC_DEL, | ||
29 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT | ||
30 | ), | ||
31 | |||
32 | [_LAYER1] = LAYOUT_60_ansi_arrow( | ||
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, KC_TRNS, | ||
37 | KC_TRNS, 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/tf60v2/keymaps/via/keymap.c b/keyboards/fjlabs/tf60v2/keymaps/via/keymap.c new file mode 100644 index 000000000..5937f59e2 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/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_arrow( | ||
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, RSFT_T(KC_SLSH), KC_UP, KC_DEL, | ||
31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT | ||
32 | ), | ||
33 | |||
34 | [_LAYER1] = LAYOUT_60_ansi_arrow( | ||
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, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
40 | ), | ||
41 | |||
42 | [_LAYER2] = LAYOUT_60_ansi_arrow( | ||
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, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ), | ||
49 | |||
50 | [_LAYER3] = LAYOUT_60_ansi_arrow( | ||
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, KC_TRNS, | ||
55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
56 | ), | ||
57 | |||
58 | }; | ||
diff --git a/keyboards/fjlabs/tf60v2/keymaps/via/rules.mk b/keyboards/fjlabs/tf60v2/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/fjlabs/tf60v2/readme.md b/keyboards/fjlabs/tf60v2/readme.md new file mode 100644 index 000000000..22e624e68 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/readme.md | |||
@@ -0,0 +1,27 @@ | |||
1 | # FJLabs TF60 RGB V2 | ||
2 | |||
3 | The following is the QMK Firmware for the FJLabs TF60 RGB V2 PCB, a universal tray mount 60% hotswap PCB with per key RGB LED's. | ||
4 | |||
5 | The PCB will feature: | ||
6 | * Kailh Hotswap sockets | ||
7 | * QMK & VIA compatibility | ||
8 | * Per-Key RGB LED's | ||
9 | |||
10 | --- | ||
11 | |||
12 | * Keyboard Maintainer: FJLabs | ||
13 | * Hardware Supported: TF60 RGB V2 | ||
14 | |||
15 | Make example for this keyboard (after setting up your build environment): | ||
16 | |||
17 | make fjlabs/tf60v2:default | ||
18 | |||
19 | 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). Y | ||
20 | |||
21 | ## Bootloader | ||
22 | |||
23 | Enter the bootloader in 3 ways: | ||
24 | |||
25 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
26 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
27 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available \ No newline at end of file | ||
diff --git a/keyboards/fjlabs/tf60v2/rules.mk b/keyboards/fjlabs/tf60v2/rules.mk new file mode 100644 index 000000000..bf43d3526 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/rules.mk | |||
@@ -0,0 +1,27 @@ | |||
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 | KEYBOARD_LOCK_ENABLE = yes | ||
26 | |||
27 | LAYOUTS = 60_ansi_arrow | ||
diff --git a/keyboards/fjlabs/tf60v2/tf60v2.c b/keyboards/fjlabs/tf60v2/tf60v2.c new file mode 100644 index 000000000..7a73d6390 --- /dev/null +++ b/keyboards/fjlabs/tf60v2/tf60v2.c | |||
@@ -0,0 +1,14 @@ | |||
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 | #include "tf60v2.h" | ||
diff --git a/keyboards/fjlabs/tf60v2/tf60v2.h b/keyboards/fjlabs/tf60v2/tf60v2.h new file mode 100644 index 000000000..52ddffdff --- /dev/null +++ b/keyboards/fjlabs/tf60v2/tf60v2.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 | /* TF60 ANSI Keymap Definitions */ | ||
20 | #define LAYOUT_60_ansi_arrow( \ | ||
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, K3D, \ | ||
25 | K40, K41, K42, K45, K49, K4A, K4B, 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, K3D }, \ | ||
31 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, K4B, K4C, K4D } \ | ||
32 | } | ||
diff --git a/keyboards/fjlabs/tf65rgbv2/config.h b/keyboards/fjlabs/tf65rgbv2/config.h new file mode 100644 index 000000000..65e1932f4 --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/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 0x1007 // tf60v2 | ||
25 | #define DEVICE_VER 0x0001 // Version 1 | ||
26 | #define MANUFACTURER FJLabs | ||
27 | #define PRODUCT TF65RGBv2 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 15 | ||
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, D1 } | ||
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 68 | ||
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 96 | ||
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/tf65rgbv2/info.json b/keyboards/fjlabs/tf65rgbv2/info.json new file mode 100644 index 000000000..fe91dcaec --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/info.json | |||
@@ -0,0 +1,83 @@ | |||
1 | { | ||
2 | "keyboard_name": "TF65 RGB V2", | ||
3 | "url": "https://www.fjlaboratories.com/", | ||
4 | "maintainer": "FJLabs", | ||
5 | "layouts": { | ||
6 | "LAYOUT_65_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 | {"x": 15, "y": 0}, | ||
23 | |||
24 | {"x": 0, "y": 1, "w": 1.5}, | ||
25 | {"x": 1.5, "y": 1}, | ||
26 | {"x": 2.5, "y": 1}, | ||
27 | {"x": 3.5, "y": 1}, | ||
28 | {"x": 4.5, "y": 1}, | ||
29 | {"x": 5.5, "y": 1}, | ||
30 | {"x": 6.5, "y": 1}, | ||
31 | {"x": 7.5, "y": 1}, | ||
32 | {"x": 8.5, "y": 1}, | ||
33 | {"x": 9.5, "y": 1}, | ||
34 | {"x": 10.5, "y": 1}, | ||
35 | {"x": 11.5, "y": 1}, | ||
36 | {"x": 12.5, "y": 1}, | ||
37 | {"x": 13.5, "y": 1, "w": 1.5}, | ||
38 | {"x": 15, "y": 1}, | ||
39 | |||
40 | {"x": 0, "y": 2, "w": 1.75}, | ||
41 | {"x": 1.75, "y": 2}, | ||
42 | {"x": 2.75, "y": 2}, | ||
43 | {"x": 3.75, "y": 2}, | ||
44 | {"x": 4.75, "y": 2}, | ||
45 | {"x": 5.75, "y": 2}, | ||
46 | {"x": 6.75, "y": 2}, | ||
47 | {"x": 7.75, "y": 2}, | ||
48 | {"x": 8.75, "y": 2}, | ||
49 | {"x": 9.75, "y": 2}, | ||
50 | {"x": 10.75, "y": 2}, | ||
51 | {"x": 11.75, "y": 2}, | ||
52 | {"x": 12.75, "y": 2, "w": 2.25}, | ||
53 | {"x": 15, "y": 2}, | ||
54 | |||
55 | {"x": 0, "y": 3, "w": 2.25}, | ||
56 | {"x": 2.25, "y": 3}, | ||
57 | {"x": 3.25, "y": 3}, | ||
58 | {"x": 4.25, "y": 3}, | ||
59 | {"x": 5.25, "y": 3}, | ||
60 | {"x": 6.25, "y": 3}, | ||
61 | {"x": 7.25, "y": 3}, | ||
62 | {"x": 8.25, "y": 3}, | ||
63 | {"x": 9.25, "y": 3}, | ||
64 | {"x": 10.25, "y": 3}, | ||
65 | {"x": 11.25, "y": 3}, | ||
66 | {"x": 12.25, "y": 3, "w": 1.75}, | ||
67 | {"x": 14, "y": 3}, | ||
68 | {"x": 15, "y": 3}, | ||
69 | |||
70 | {"x": 0, "y": 4, "w": 1.25}, | ||
71 | {"x": 1.25, "y": 4, "w": 1.25}, | ||
72 | {"x": 2.5, "y": 4, "w": 1.25}, | ||
73 | {"x": 3.75, "y": 4, "w": 6.25}, | ||
74 | {"x": 10, "y": 4}, | ||
75 | {"x": 11, "y": 4}, | ||
76 | {"x": 12, "y": 4}, | ||
77 | {"x": 13, "y": 4}, | ||
78 | {"x": 14, "y": 4}, | ||
79 | {"x": 15, "y": 4} | ||
80 | ] | ||
81 | } | ||
82 | } | ||
83 | } | ||
diff --git a/keyboards/fjlabs/tf65rgbv2/keymaps/default/keymap.c b/keyboards/fjlabs/tf65rgbv2/keymaps/default/keymap.c new file mode 100644 index 000000000..96c2351e8 --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/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_65_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, KC_HOME, | ||
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, KC_PGUP, | ||
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, KC_PGDN, | ||
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, KC_UP, KC_DEL, | ||
29 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
30 | ), | ||
31 | |||
32 | [_LAYER1] = LAYOUT_65_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, KC_TRNS, | ||
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, KC_TRNS, | ||
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, 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, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, 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/tf65rgbv2/keymaps/via/keymap.c b/keyboards/fjlabs/tf65rgbv2/keymaps/via/keymap.c new file mode 100644 index 000000000..3e071bd07 --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/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_65_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, KC_HOME, | ||
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, KC_PGUP, | ||
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, KC_PGDN, | ||
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, KC_UP, KC_DEL, | ||
31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
32 | ), | ||
33 | |||
34 | [_LAYER1] = LAYOUT_65_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, KC_TRNS, | ||
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, KC_TRNS, | ||
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, 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, KC_TRNS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
40 | ), | ||
41 | |||
42 | [_LAYER2] = LAYOUT_65_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, 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, 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, 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, KC_TRNS, KC_TRNS, | ||
47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
48 | ), | ||
49 | |||
50 | [_LAYER3] = LAYOUT_65_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, 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, 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, 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, KC_TRNS, KC_TRNS, | ||
55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
56 | ), | ||
57 | |||
58 | }; | ||
diff --git a/keyboards/fjlabs/tf65rgbv2/keymaps/via/rules.mk b/keyboards/fjlabs/tf65rgbv2/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/fjlabs/tf65rgbv2/readme.md b/keyboards/fjlabs/tf65rgbv2/readme.md new file mode 100644 index 000000000..0aea9ef8f --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/readme.md | |||
@@ -0,0 +1,27 @@ | |||
1 | # FJLabs TF65 RGB V2 | ||
2 | |||
3 | The following is the QMK Firmware for the FJLabs TF65 RGB V2 PCB, a universal tray mount 65% hotswap PCB with per key RGB LED's. | ||
4 | |||
5 | The PCB will feature: | ||
6 | * Kailh Hotswap sockets | ||
7 | * QMK & VIA compatibility | ||
8 | * Per-Key RGB LED's | ||
9 | |||
10 | --- | ||
11 | |||
12 | * Keyboard Maintainer: FJLabs | ||
13 | * Hardware Supported: TF65 RGB V2 | ||
14 | |||
15 | Make example for this keyboard (after setting up your build environment): | ||
16 | |||
17 | make fjlabs/tf65rgbv2:default | ||
18 | |||
19 | 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). | ||
20 | |||
21 | ## Bootloader | ||
22 | |||
23 | Enter the bootloader in 3 ways: | ||
24 | |||
25 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
26 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
27 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available \ No newline at end of file | ||
diff --git a/keyboards/fjlabs/tf65rgbv2/rules.mk b/keyboards/fjlabs/tf65rgbv2/rules.mk new file mode 100644 index 000000000..1ec4ee2ac --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/rules.mk | |||
@@ -0,0 +1,27 @@ | |||
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 | KEYBOARD_LOCK_ENABLE = yes | ||
26 | |||
27 | LAYOUTS = 65_ansi \ No newline at end of file | ||
diff --git a/keyboards/fjlabs/tf65rgbv2/tf65rgbv2.c b/keyboards/fjlabs/tf65rgbv2/tf65rgbv2.c new file mode 100644 index 000000000..637b6d05e --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/tf65rgbv2.c | |||
@@ -0,0 +1,14 @@ | |||
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 | #include "tf65rgbv2.h" | ||
diff --git a/keyboards/fjlabs/tf65rgbv2/tf65rgbv2.h b/keyboards/fjlabs/tf65rgbv2/tf65rgbv2.h new file mode 100644 index 000000000..434d15668 --- /dev/null +++ b/keyboards/fjlabs/tf65rgbv2/tf65rgbv2.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 | /* TF60 ANSI Keymap Definitions */ | ||
20 | #define LAYOUT_65_ansi( \ | ||
21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, \ | ||
24 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3C, K3D, K3E, \ | ||
25 | K40, K41, K42, K45, K49, K4A, K4B, K4C, K4D, K4E \ | ||
26 | ) { \ | ||
27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K2E }, \ | ||
29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, K1E }, \ | ||
30 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, KC_NO, K3C, K3D, K3E }, \ | ||
31 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, K4B, K4C, K4D, K4E } \ | ||
32 | } | ||