aboutsummaryrefslogtreecommitdiff
path: root/keyboards/alf/x11
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/alf/x11
Diffstat (limited to 'keyboards/alf/x11')
-rw-r--r--keyboards/alf/x11/config.h140
-rw-r--r--keyboards/alf/x11/info.json109
-rw-r--r--keyboards/alf/x11/keymaps/default/keymap.c37
-rw-r--r--keyboards/alf/x11/keymaps/default/readme.md1
-rw-r--r--keyboards/alf/x11/readme.md13
-rw-r--r--keyboards/alf/x11/rules.mk19
-rw-r--r--keyboards/alf/x11/x11.c16
-rw-r--r--keyboards/alf/x11/x11.h43
8 files changed, 378 insertions, 0 deletions
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/*
2Copyright 2019 MechMerlin
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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
18const 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
3TKL Keyboard made by Alf
4
5Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
6Hardware Supported: Alf X1.1 PCB
7Hardware Availability: [Massdrop](https://www.massdrop.com/buy/alf-studio-x1-1-custom-mechanical-keyboard-kit)
8
9Make example for this keyboard (after setting up your build environment):
10
11 make alf/x11:default
12
13See 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
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19LTO_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}