diff options
Diffstat (limited to 'keyboards/alf')
24 files changed, 956 insertions, 0 deletions
diff --git a/keyboards/alf/dc60/config.h b/keyboards/alf/dc60/config.h new file mode 100644 index 000000000..5c3768532 --- /dev/null +++ b/keyboards/alf/dc60/config.h | |||
@@ -0,0 +1,121 @@ | |||
1 | /* | ||
2 | Copyright 2018 MechMerlin | ||
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 0xFEED | ||
24 | #define PRODUCT_ID 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Alf | ||
27 | #define PRODUCT dc60 | ||
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 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 } | ||
44 | #define MATRIX_COL_PINS { B5, D0, D1, D2, D3, D4, D5, D6, D7, C6, C7, F4, F5, F6, F7 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | #define LED_CAPS_LOCK_PIN B7 | ||
51 | #define LED_PIN_ON_STATE 0 | ||
52 | |||
53 | #define BACKLIGHT_PIN B6 | ||
54 | #define BACKLIGHT_BREATHING | ||
55 | #define BACKLIGHT_LEVELS 5 | ||
56 | |||
57 | #define RGB_DI_PIN E6 | ||
58 | #ifdef RGB_DI_PIN | ||
59 | #define RGBLIGHT_ANIMATIONS | ||
60 | #define RGBLED_NUM 20 | ||
61 | #define RGBLIGHT_HUE_STEP 8 | ||
62 | #define RGBLIGHT_SAT_STEP 8 | ||
63 | #define RGBLIGHT_VAL_STEP 8 | ||
64 | #endif | ||
65 | |||
66 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
67 | #define DEBOUNCE 5 | ||
68 | |||
69 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
70 | //#define MATRIX_HAS_GHOST | ||
71 | |||
72 | /* number of backlight levels */ | ||
73 | |||
74 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
75 | #define LOCKING_SUPPORT_ENABLE | ||
76 | /* Locking resynchronize hack */ | ||
77 | #define LOCKING_RESYNC_ENABLE | ||
78 | |||
79 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
80 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
81 | */ | ||
82 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
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/alf/dc60/dc60.c b/keyboards/alf/dc60/dc60.c new file mode 100644 index 000000000..4096d10a6 --- /dev/null +++ b/keyboards/alf/dc60/dc60.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2018 MechMerlin | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include "dc60.h" | ||
diff --git a/keyboards/alf/dc60/dc60.h b/keyboards/alf/dc60/dc60.h new file mode 100644 index 000000000..710ae703e --- /dev/null +++ b/keyboards/alf/dc60/dc60.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* Copyright 2018 MechMerlin | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | #define XXX KC_NO | ||
22 | |||
23 | // This a shortcut to help you visually see your layout. | ||
24 | // The following is an example using the Planck MIT layout | ||
25 | // The first section contains all of the arguments representing the physical | ||
26 | // layout of the board and position of the keys | ||
27 | // The second converts the arguments into a two-dimensional array which | ||
28 | // represents the switch matrix. | ||
29 | #define LAYOUT_all( \ | ||
30 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, \ | ||
31 | k10, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, \ | ||
32 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, \ | ||
33 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, \ | ||
34 | k40, k42, k43, k45, k47, k48, k4A, k4B, k4C, k4D, k4E \ | ||
35 | ) { \ | ||
36 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E }, \ | ||
37 | { k10, XXX, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E }, \ | ||
38 | { k20, XXX, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, XXX }, \ | ||
39 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E }, \ | ||
40 | { k40, XXX, k42, k43, XXX, k45, XXX, k47, k48, XXX, k4A, k4B, k4C, k4D, k4E } \ | ||
41 | } | ||
diff --git a/keyboards/alf/dc60/info.json b/keyboards/alf/dc60/info.json new file mode 100644 index 000000000..f10d594fc --- /dev/null +++ b/keyboards/alf/dc60/info.json | |||
@@ -0,0 +1,9 @@ | |||
1 | { | ||
2 | "keyboard_name": "dc60", | ||
3 | "maintainer": "qmk", | ||
4 | "layouts": { | ||
5 | "LAYOUT_all": { | ||
6 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}, {"x":12, "y":3}, {"x":13, "y":3}, {"x":14, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":2.75}, {"x":6.5, "y":4, "w":1.25}, {"x":7.75, "y":4, "w":2.25}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}, {"x":14, "y":4}] | ||
7 | } | ||
8 | } | ||
9 | } | ||
diff --git a/keyboards/alf/dc60/keymaps/default/keymap.c b/keyboards/alf/dc60/keymaps/default/keymap.c new file mode 100644 index 000000000..ddc488670 --- /dev/null +++ b/keyboards/alf/dc60/keymaps/default/keymap.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /* Copyright 2018 MechMerlin | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT_all( | ||
20 | KC_ESC, 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_BSPC, | ||
21 | 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, | ||
22 | 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, | ||
23 | KC_LSFT, 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, MO(1), | ||
24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_SPACE, KC_SPACE, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
25 | ), | ||
26 | |||
27 | [1] = LAYOUT_all( | ||
28 | KC_ESC, 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_TRNS, KC_TRNS, | ||
29 | 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, | ||
30 | 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, | ||
31 | KC_TRNS, KC_LSFT, KC_TRNS, KC_TRNS, BL_DEC, BL_TOGG, BL_INC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
33 | ), | ||
34 | }; | ||
diff --git a/keyboards/alf/dc60/keymaps/default/readme.md b/keyboards/alf/dc60/keymaps/default/readme.md new file mode 100644 index 000000000..85bef5fc7 --- /dev/null +++ b/keyboards/alf/dc60/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for dc60 | |||
diff --git a/keyboards/alf/dc60/readme.md b/keyboards/alf/dc60/readme.md new file mode 100644 index 000000000..d8e20a8f4 --- /dev/null +++ b/keyboards/alf/dc60/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # dc60 | ||
2 | |||
3 |  | ||
4 | |||
5 | A 60% PCB sold with the Alf DC60. | ||
6 | |||
7 | Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin) | ||
8 | Hardware Supported: DC60 PCB | ||
9 | Hardware Availability: [Geekhack GB](https://geekhack.org/index.php?topic=96616.0) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make alf/dc60:default | ||
14 | |||
15 | 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). | ||
diff --git a/keyboards/alf/dc60/rules.mk b/keyboards/alf/dc60/rules.mk new file mode 100644 index 000000000..8434db38d --- /dev/null +++ b/keyboards/alf/dc60/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/alf/x11/config.h b/keyboards/alf/x11/config.h new file mode 100644 index 000000000..437f1e22b --- /dev/null +++ b/keyboards/alf/x11/config.h | |||
@@ -0,0 +1,140 @@ | |||
1 | /* | ||
2 | Copyright 2019 MechMerlin | ||
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 0xFEED | ||
24 | #define PRODUCT_ID 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Alf | ||
27 | #define PRODUCT x11 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 7 | ||
31 | #define MATRIX_COLS 13 | ||
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 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 } | ||
44 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, D7, F0, F1, F4, F5, F6 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | #define LED_NUM_LOCK_PIN E6 | ||
51 | #define LED_CAPS_LOCK_PIN C6 | ||
52 | #define LED_SCROLL_LOCK_PIN C7 | ||
53 | #define LED_PIN_ON_STATE 0 | ||
54 | |||
55 | #define BACKLIGHT_PIN B7 | ||
56 | #define BACKLIGHT_BREATHING | ||
57 | #define BACKLIGHT_LEVELS 3 | ||
58 | |||
59 | #define RGB_DI_PIN F7 | ||
60 | #ifdef RGB_DI_PIN | ||
61 | #define RGBLED_NUM 28 | ||
62 | #define RGBLIGHT_HUE_STEP 8 | ||
63 | #define RGBLIGHT_SAT_STEP 8 | ||
64 | #define RGBLIGHT_VAL_STEP 8 | ||
65 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
66 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
67 | /*== all animations enable ==*/ | ||
68 | #define RGBLIGHT_ANIMATIONS | ||
69 | /*== or choose animations ==*/ | ||
70 | // #define RGBLIGHT_EFFECT_BREATHING | ||
71 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
72 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
73 | // #define RGBLIGHT_EFFECT_SNAKE | ||
74 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
75 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
76 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
77 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
78 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
79 | #endif | ||
80 | |||
81 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
82 | #define DEBOUNCE 5 | ||
83 | |||
84 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
85 | //#define MATRIX_HAS_GHOST | ||
86 | |||
87 | /* number of backlight levels */ | ||
88 | |||
89 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
90 | #define LOCKING_SUPPORT_ENABLE | ||
91 | /* Locking resynchronize hack */ | ||
92 | #define LOCKING_RESYNC_ENABLE | ||
93 | |||
94 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
95 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
96 | */ | ||
97 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
98 | |||
99 | /* | ||
100 | * Force NKRO | ||
101 | * | ||
102 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
103 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
104 | * makefile for this to work.) | ||
105 | * | ||
106 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
107 | * until the next keyboard reset. | ||
108 | * | ||
109 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
110 | * fully operational during normal computer usage. | ||
111 | * | ||
112 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
113 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
114 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
115 | * power-up. | ||
116 | * | ||
117 | */ | ||
118 | //#define FORCE_NKRO | ||
119 | |||
120 | /* | ||
121 | * Feature disable options | ||
122 | * These options are also useful to firmware size reduction. | ||
123 | */ | ||
124 | |||
125 | /* disable debug print */ | ||
126 | //#define NO_DEBUG | ||
127 | |||
128 | /* disable print */ | ||
129 | //#define NO_PRINT | ||
130 | |||
131 | /* disable action features */ | ||
132 | //#define NO_ACTION_LAYER | ||
133 | //#define NO_ACTION_TAPPING | ||
134 | //#define NO_ACTION_ONESHOT | ||
135 | //#define NO_ACTION_MACRO | ||
136 | //#define NO_ACTION_FUNCTION | ||
137 | |||
138 | /* Bootmagic Lite key configuration */ | ||
139 | // #define BOOTMAGIC_LITE_ROW 0 | ||
140 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/alf/x11/info.json b/keyboards/alf/x11/info.json new file mode 100644 index 000000000..14d4a5efb --- /dev/null +++ b/keyboards/alf/x11/info.json | |||
@@ -0,0 +1,109 @@ | |||
1 | { | ||
2 | "keyboard_name": "x11", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [ | ||
8 | {"label":"K00", "x":0, "y":0}, | ||
9 | {"label":"K01", "x":2, "y":0}, | ||
10 | {"label":"K02", "x":3, "y":0}, | ||
11 | {"label":"K03", "x":4, "y":0}, | ||
12 | {"label":"K04", "x":5, "y":0}, | ||
13 | {"label":"K05", "x":6.5, "y":0}, | ||
14 | {"label":"K06", "x":7.5, "y":0}, | ||
15 | {"label":"K07", "x":8.5, "y":0}, | ||
16 | {"label":"K08", "x":9.5, "y":0}, | ||
17 | {"label":"K09", "x":11, "y":0}, | ||
18 | {"label":"K0A", "x":12, "y":0}, | ||
19 | {"label":"K0B", "x":13, "y":0}, | ||
20 | {"label":"K0C", "x":14, "y":0}, | ||
21 | |||
22 | {"label":"K62", "x":15.25, "y":0}, | ||
23 | {"label":"K61", "x":16.25, "y":0}, | ||
24 | {"label":"K60", "x":17.25, "y":0}, | ||
25 | |||
26 | {"label":"K10", "x":0, "y":1.5}, | ||
27 | {"label":"K11", "x":1, "y":1.5}, | ||
28 | {"label":"K12", "x":2, "y":1.5}, | ||
29 | {"label":"K13", "x":3, "y":1.5}, | ||
30 | {"label":"K14", "x":4, "y":1.5}, | ||
31 | {"label":"K15", "x":5, "y":1.5}, | ||
32 | {"label":"K16", "x":6, "y":1.5}, | ||
33 | {"label":"K17", "x":7, "y":1.5}, | ||
34 | {"label":"K18", "x":8, "y":1.5}, | ||
35 | {"label":"K19", "x":9, "y":1.5}, | ||
36 | {"label":"K1A", "x":10, "y":1.5}, | ||
37 | {"label":"K1B", "x":11, "y":1.5}, | ||
38 | {"label":"K1C", "x":12, "y":1.5}, | ||
39 | {"label":"K5A", "x":13, "y":1.5, "w":2}, | ||
40 | |||
41 | {"label":"K63", "x":15.25, "y":1.5}, | ||
42 | {"label":"K65", "x":16.25, "y":1.5}, | ||
43 | {"label":"K67", "x":17.25, "y":1.5}, | ||
44 | |||
45 | {"label":"K20", "x":0, "y":2.5, "w":1.5}, | ||
46 | {"label":"K21", "x":1.5, "y":2.5}, | ||
47 | {"label":"K22", "x":2.5, "y":2.5}, | ||
48 | {"label":"K23", "x":3.5, "y":2.5}, | ||
49 | {"label":"K24", "x":4.5, "y":2.5}, | ||
50 | {"label":"K25", "x":5.5, "y":2.5}, | ||
51 | {"label":"K26", "x":6.5, "y":2.5}, | ||
52 | {"label":"K27", "x":7.5, "y":2.5}, | ||
53 | {"label":"K28", "x":8.5, "y":2.5}, | ||
54 | {"label":"K29", "x":9.5, "y":2.5}, | ||
55 | {"label":"K2A", "x":10.5, "y":2.5}, | ||
56 | {"label":"K2B", "x":11.5, "y":2.5}, | ||
57 | {"label":"K2C", "x":12.5, "y":2.5}, | ||
58 | {"label":"K4C", "x":13.5, "y":2.5, "w":1.5}, | ||
59 | |||
60 | {"label":"K64", "x":15.25, "y":2.5}, | ||
61 | {"label":"K66", "x":16.25, "y":2.5}, | ||
62 | {"label":"K68", "x":17.25, "y":2.5}, | ||
63 | |||
64 | {"label":"K30", "x":0, "y":3.5, "w":1.75}, | ||
65 | {"label":"K31", "x":1.75, "y":3.5}, | ||
66 | {"label":"K32", "x":2.75, "y":3.5}, | ||
67 | {"label":"K33", "x":3.75, "y":3.5}, | ||
68 | {"label":"K34", "x":4.75, "y":3.5}, | ||
69 | {"label":"K35", "x":5.75, "y":3.5}, | ||
70 | {"label":"K36", "x":6.75, "y":3.5}, | ||
71 | {"label":"K37", "x":7.75, "y":3.5}, | ||
72 | {"label":"K38", "x":8.75, "y":3.5}, | ||
73 | {"label":"K39", "x":9.75, "y":3.5}, | ||
74 | {"label":"K3A", "x":10.75, "y":3.5}, | ||
75 | {"label":"K3B", "x":11.75, "y":3.5}, | ||
76 | {"label":"K3C", "x":12.75, "y":3.5, "w":2.25}, | ||
77 | |||
78 | {"label":"K40", "x":0, "y":4.5, "w":2.25}, | ||
79 | {"label":"K41", "x":2.25, "y":4.5}, | ||
80 | {"label":"K42", "x":3.25, "y":4.5}, | ||
81 | {"label":"K43", "x":4.25, "y":4.5}, | ||
82 | {"label":"K44", "x":5.25, "y":4.5}, | ||
83 | {"label":"K45", "x":6.25, "y":4.5}, | ||
84 | {"label":"K46", "x":7.25, "y":4.5}, | ||
85 | {"label":"K47", "x":8.25, "y":4.5}, | ||
86 | {"label":"K48", "x":9.25, "y":4.5}, | ||
87 | {"label":"K49", "x":10.25, "y":4.5}, | ||
88 | {"label":"K4A", "x":11.25, "y":4.5}, | ||
89 | {"label":"K4B", "x":12.25, "y":4.5, "w":1.75}, | ||
90 | {"label":"K69", "x":14, "y":4.5}, | ||
91 | |||
92 | {"label":"K58", "x":16.25, "y":4.5}, | ||
93 | |||
94 | {"label":"K50", "x":0, "y":5.5, "w":1.25}, | ||
95 | {"label":"K51", "x":1.25, "y":5.5, "w":1.25}, | ||
96 | {"label":"K52", "x":2.5, "y":5.5, "w":1.25}, | ||
97 | {"label":"K53", "x":3.75, "y":5.5, "w":6.25}, | ||
98 | {"label":"K54", "x":10, "y":5.5, "w":1.25}, | ||
99 | {"label":"K55", "x":11.25, "y":5.5, "w":1.25}, | ||
100 | {"label":"K56", "x":12.5, "y":5.5, "w":1.25}, | ||
101 | {"label":"K57", "x":13.75, "y":5.5, "w":1.25}, | ||
102 | |||
103 | {"label":"K6A", "x":15.25, "y":5.5}, | ||
104 | {"label":"K59", "x":16.25, "y":5.5}, | ||
105 | {"label":"K6B", "x":17.25, "y":5.5} | ||
106 | ] | ||
107 | } | ||
108 | } | ||
109 | } | ||
diff --git a/keyboards/alf/x11/keymaps/default/keymap.c b/keyboards/alf/x11/keymaps/default/keymap.c new file mode 100644 index 000000000..f0747d345 --- /dev/null +++ b/keyboards/alf/x11/keymaps/default/keymap.c | |||
@@ -0,0 +1,37 @@ | |||
1 | /* Copyright 2019 MechMerlin | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT( | ||
20 | KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS, | ||
21 | |||
22 | KC_GRV, 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_INS, KC_HOME, KC_PGUP, | ||
23 | 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_DEL, KC_END, KC_PGDN, | ||
24 | 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, | ||
25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP, | ||
26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT( | ||
29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
30 | |||
31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
32 | BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_MPLY, KC_MSTP, | ||
33 | RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, | ||
34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
36 | ) | ||
37 | }; | ||
diff --git a/keyboards/alf/x11/keymaps/default/readme.md b/keyboards/alf/x11/keymaps/default/readme.md new file mode 100644 index 000000000..a08c59173 --- /dev/null +++ b/keyboards/alf/x11/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for x11 | |||
diff --git a/keyboards/alf/x11/readme.md b/keyboards/alf/x11/readme.md new file mode 100644 index 000000000..b403a0952 --- /dev/null +++ b/keyboards/alf/x11/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Alf X1.1 | ||
2 | |||
3 | TKL Keyboard made by Alf | ||
4 | |||
5 | Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin) | ||
6 | Hardware Supported: Alf X1.1 PCB | ||
7 | Hardware Availability: [Massdrop](https://www.massdrop.com/buy/alf-studio-x1-1-custom-mechanical-keyboard-kit) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make alf/x11:default | ||
12 | |||
13 | 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). | ||
diff --git a/keyboards/alf/x11/rules.mk b/keyboards/alf/x11/rules.mk new file mode 100644 index 000000000..d1f8584cb --- /dev/null +++ b/keyboards/alf/x11/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||
19 | LTO_ENABLE = yes | ||
diff --git a/keyboards/alf/x11/x11.c b/keyboards/alf/x11/x11.c new file mode 100644 index 000000000..28e77ecd3 --- /dev/null +++ b/keyboards/alf/x11/x11.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2019 MechMerlin | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include "x11.h" | ||
diff --git a/keyboards/alf/x11/x11.h b/keyboards/alf/x11/x11.h new file mode 100644 index 000000000..2a1d886fd --- /dev/null +++ b/keyboards/alf/x11/x11.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* Copyright 2019 MechMerlin | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | |||
18 | #include "quantum.h" | ||
19 | |||
20 | /* This a shortcut to help you visually see your layout. | ||
21 | * | ||
22 | * The first section contains all of the arguments representing the physical | ||
23 | * layout of the board and position of the keys. | ||
24 | * | ||
25 | * The second converts the arguments into a two-dimensional array which | ||
26 | * represents the switch matrix. | ||
27 | */ | ||
28 | #define LAYOUT( \ | ||
29 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K62, K61, K60, \ | ||
30 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K5A, K63, K65, K67, \ | ||
31 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K4C, K64, K66, K68, \ | ||
32 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \ | ||
33 | K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K69, K58, \ | ||
34 | K50, K51, K52, K53, K54, K55, K56, K57, K6A, K59, K6B \ | ||
35 | ) { \ | ||
36 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \ | ||
37 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \ | ||
38 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \ | ||
39 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C }, \ | ||
40 | { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C }, \ | ||
41 | { K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, KC_NO, KC_NO }, \ | ||
42 | { K60, K61, K62, K63, K64, K65, K66, K67, K68, K69, K6A, K6B, KC_NO }, \ | ||
43 | } | ||
diff --git a/keyboards/alf/x2/config.h b/keyboards/alf/x2/config.h new file mode 100644 index 000000000..a6f4958b0 --- /dev/null +++ b/keyboards/alf/x2/config.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* Copyright 2018-2021 @fixed, MechMerlin, QMK | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | |||
21 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0xFEED | ||
23 | #define PRODUCT_ID 0x6060 | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER ALF | ||
26 | #define PRODUCT X2 | ||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 5 | ||
30 | #define MATRIX_COLS 15 | ||
31 | |||
32 | /* key matrix pins */ | ||
33 | #define MATRIX_ROW_PINS \ | ||
34 | { D0, D1, D2, D3, D5 } | ||
35 | #define MATRIX_COL_PINS \ | ||
36 | { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3, F4 } | ||
37 | #define UNUSED_PINS | ||
38 | |||
39 | /* COL2ROW or ROW2COL */ | ||
40 | #define DIODE_DIRECTION COL2ROW | ||
41 | |||
42 | #define LED_CAPS_LOCK_PIN B2 | ||
43 | #define LED_PIN_ON_STATE 0 | ||
44 | |||
45 | /* number of backlight levels */ | ||
46 | #define BACKLIGHT_PIN B6 | ||
47 | #ifdef BACKLIGHT_PIN | ||
48 | # define BACKLIGHT_LEVELS 3 | ||
49 | #endif | ||
50 | |||
51 | /* Set 0 if debouncing isn't needed */ | ||
52 | #define DEBOUNCE 5 | ||
53 | |||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
55 | #define LOCKING_SUPPORT_ENABLE | ||
56 | |||
57 | /* Locking resynchronize hack */ | ||
58 | #define LOCKING_RESYNC_ENABLE | ||
59 | |||
60 | #define RGB_DI_PIN E2 | ||
61 | #ifdef RGB_DI_PIN | ||
62 | # define RGBLIGHT_ANIMATIONS | ||
63 | # define RGBLED_NUM 4 | ||
64 | # define RGBLIGHT_HUE_STEP 8 | ||
65 | # define RGBLIGHT_SAT_STEP 8 | ||
66 | # define RGBLIGHT_VAL_STEP 8 | ||
67 | #endif | ||
diff --git a/keyboards/alf/x2/info.json b/keyboards/alf/x2/info.json new file mode 100644 index 000000000..4a3cc839c --- /dev/null +++ b/keyboards/alf/x2/info.json | |||
@@ -0,0 +1,84 @@ | |||
1 | { | ||
2 | "keyboard_name": "ALF X2", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "layouts": { | ||
6 | "LAYOUT_all": { | ||
7 | "layout": [ | ||
8 | {"x":1.5, "y":0}, | ||
9 | {"x":2.5, "y":0}, | ||
10 | |||
11 | {"label":"~", "x":0, "y":1}, | ||
12 | {"label":"!", "x":1, "y":1}, | ||
13 | {"label":"@", "x":2, "y":1}, | ||
14 | {"label":"#", "x":3, "y":1}, | ||
15 | {"label":"$", "x":4, "y":1}, | ||
16 | {"label":"%", "x":5, "y":1}, | ||
17 | {"label":"^", "x":6, "y":1}, | ||
18 | {"label":"&", "x":7, "y":1}, | ||
19 | {"label":"*", "x":8, "y":1}, | ||
20 | {"label":"(", "x":9, "y":1}, | ||
21 | {"label":")", "x":10, "y":1}, | ||
22 | {"label":"_", "x":11, "y":1}, | ||
23 | {"label":"+", "x":12, "y":1}, | ||
24 | {"x":13, "y":1}, | ||
25 | {"x":14, "y":1}, | ||
26 | |||
27 | {"label":"Tab", "x":0, "y":2, "w":1.5}, | ||
28 | {"label":"Q", "x":1.5, "y":2}, | ||
29 | {"label":"W", "x":2.5, "y":2}, | ||
30 | {"label":"E", "x":3.5, "y":2}, | ||
31 | {"label":"R", "x":4.5, "y":2}, | ||
32 | {"label":"T", "x":5.5, "y":2}, | ||
33 | {"label":"Y", "x":6.5, "y":2}, | ||
34 | {"label":"U", "x":7.5, "y":2}, | ||
35 | {"label":"I", "x":8.5, "y":2}, | ||
36 | {"label":"O", "x":9.5, "y":2}, | ||
37 | {"label":"P", "x":10.5, "y":2}, | ||
38 | {"label":"{", "x":11.5, "y":2}, | ||
39 | {"label":"}", "x":12.5, "y":2}, | ||
40 | {"label":"|", "x":13.5, "y":2, "w":1.5}, | ||
41 | |||
42 | {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, | ||
43 | {"label":"A", "x":1.75, "y":3}, | ||
44 | {"label":"S", "x":2.75, "y":3}, | ||
45 | {"label":"D", "x":3.75, "y":3}, | ||
46 | {"label":"F", "x":4.75, "y":3}, | ||
47 | {"label":"G", "x":5.75, "y":3}, | ||
48 | {"label":"H", "x":6.75, "y":3}, | ||
49 | {"label":"J", "x":7.75, "y":3}, | ||
50 | {"label":"K", "x":8.75, "y":3}, | ||
51 | {"label":"L", "x":9.75, "y":3}, | ||
52 | {"label":":", "x":10.75, "y":3}, | ||
53 | {"label":"\"", "x":11.75, "y":3}, | ||
54 | {"label":"Enter", "x":12.75, "y":3, "w":2.25}, | ||
55 | |||
56 | {"label":"Shift", "x":0, "y":4}, | ||
57 | {"x":1, "y":4}, | ||
58 | {"label":"Z", "x":2, "y":4}, | ||
59 | {"label":"X", "x":3, "y":4}, | ||
60 | {"label":"C", "x":4, "y":4}, | ||
61 | {"label":"V", "x":5, "y":4}, | ||
62 | {"label":"B", "x":6, "y":4}, | ||
63 | {"label":"N", "x":7, "y":4}, | ||
64 | {"label":"M", "x":8, "y":4}, | ||
65 | {"label":"<", "x":9, "y":4}, | ||
66 | {"label":">", "x":10, "y":4}, | ||
67 | {"label":"?", "x":11, "y":4}, | ||
68 | {"x":12, "y":4}, | ||
69 | {"x":13, "y":4}, | ||
70 | {"x":14, "y":4}, | ||
71 | |||
72 | {"label":"Ctrl", "x":0, "y":5, "w":1.25}, | ||
73 | {"label":"Win", "x":1.25, "y":5, "w":1.25}, | ||
74 | {"label":"Alt", "x":2.5, "y":5, "w":1.25}, | ||
75 | {"x":3.75, "y":5, "w":6.25}, | ||
76 | {"label":"Alt", "x":10, "y":5}, | ||
77 | {"label":"Win", "x":11, "y":5}, | ||
78 | {"label":"Menu", "x":12, "y":5}, | ||
79 | {"label":"Ctrl", "x":13, "y":5}, | ||
80 | {"x":14, "y":5} | ||
81 | ] | ||
82 | } | ||
83 | } | ||
84 | } | ||
diff --git a/keyboards/alf/x2/keymaps/default/keymap.c b/keyboards/alf/x2/keymaps/default/keymap.c new file mode 100644 index 000000000..5e0d69ada --- /dev/null +++ b/keyboards/alf/x2/keymaps/default/keymap.c | |||
@@ -0,0 +1,39 @@ | |||
1 | /* Copyright 2018-2021 @fixed, MechMerlin, QMK | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | |||
21 | [0] = LAYOUT_all( | ||
22 | KC_VOLU, KC_VOLD, | ||
23 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, XXXXXXX, KC_BSPC, | ||
24 | 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, | ||
25 | 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, | ||
26 | KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX, KC_RSFT, XXXXXXX, | ||
27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), XXXXXXX, KC_APP, KC_RCTL | ||
28 | ), | ||
29 | |||
30 | [1] = LAYOUT_all( | ||
31 | KC_MNXT, KC_MPRV, | ||
32 | KC_GRV, 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, | ||
33 | _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, _______, RESET, | ||
34 | _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, _______, | ||
35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_DOWN, KC_DOWN, _______, _______, | ||
36 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
37 | ), | ||
38 | |||
39 | }; | ||
diff --git a/keyboards/alf/x2/keymaps/hhkb_60/keymap.c b/keyboards/alf/x2/keymaps/hhkb_60/keymap.c new file mode 100644 index 000000000..1f46c22ad --- /dev/null +++ b/keyboards/alf/x2/keymaps/hhkb_60/keymap.c | |||
@@ -0,0 +1,39 @@ | |||
1 | /* Copyright 2018-2021 @fixed, MechMerlin, QMK | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | |||
21 | [0] = LAYOUT_all( | ||
22 | KC_VOLU, KC_VOLD, | ||
23 | KC_ESC, 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_BSLS, KC_GRV, | ||
24 | 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_BSPC, | ||
25 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
26 | KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX, KC_RSFT, MO(1), | ||
27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, XXXXXXX, KC_APP, KC_RCTL | ||
28 | ), | ||
29 | |||
30 | [1] = LAYOUT_all( | ||
31 | KC_MNXT, KC_MPRV, | ||
32 | KC_PWR, 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_INS, KC_DEL, | ||
33 | KC_CAPS, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, _______, RESET, | ||
34 | _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, _______, | ||
35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_DOWN, _______, _______, _______, | ||
36 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
37 | ), | ||
38 | |||
39 | }; | ||
diff --git a/keyboards/alf/x2/readme.md b/keyboards/alf/x2/readme.md new file mode 100644 index 000000000..671155a34 --- /dev/null +++ b/keyboards/alf/x2/readme.md | |||
@@ -0,0 +1,21 @@ | |||
1 | # X2 | ||
2 | |||
3 |  | ||
4 | |||
5 | A customizable 60% keyboard. | ||
6 | |||
7 | * Keyboard Maintainer: [The QMK Community](https://github.com/qmk) | ||
8 | * Hardware Supported: ALF X2 60% | ||
9 | * Hardware Availability: [zFrontier](https://en.zfrontier.com/products/group-buy-alf-x2-60) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make alf/x2:default | ||
14 | |||
15 | Flashing example for this keyboard: | ||
16 | |||
17 | make alf/x2:default:flash | ||
18 | |||
19 | To reset the board into bootloader mode, hold Space+B while plugging it in. | ||
20 | |||
21 | 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). | ||
diff --git a/keyboards/alf/x2/rules.mk b/keyboards/alf/x2/rules.mk new file mode 100644 index 000000000..b27013f86 --- /dev/null +++ b/keyboards/alf/x2/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/alf/x2/x2.c b/keyboards/alf/x2/x2.c new file mode 100644 index 000000000..e4352296b --- /dev/null +++ b/keyboards/alf/x2/x2.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2018 @fixed | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include "x2.h" | ||
diff --git a/keyboards/alf/x2/x2.h b/keyboards/alf/x2/x2.h new file mode 100644 index 000000000..48683ea50 --- /dev/null +++ b/keyboards/alf/x2/x2.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2018-2021 @fixed, MechMerlin, QMK | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | #define ___ KC_NO | ||
22 | |||
23 | // K44 and K48 are the microswitches at the top of the PCB | ||
24 | |||
25 | #define LAYOUT_all( \ | ||
26 | K44, K48, \ | ||
27 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
28 | K10, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
29 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
30 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
31 | K40, K41, K43, K46, K4A, K4B, K4C, K4D, K4E \ | ||
32 | ) { \ | ||
33 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
34 | { K10, ___, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
35 | { K20, ___, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, ___ }, \ | ||
36 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
37 | { K40, K41, ___, K43, K44, ___, K46, ___, K48, ___, K4A, K4B, K4C, K4D, K4E } \ | ||
38 | } | ||