diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/akb/eb46 |
Diffstat (limited to 'keyboards/akb/eb46')
-rw-r--r-- | keyboards/akb/eb46/config.h | 51 | ||||
-rw-r--r-- | keyboards/akb/eb46/eb46.c | 16 | ||||
-rw-r--r-- | keyboards/akb/eb46/eb46.h | 40 | ||||
-rw-r--r-- | keyboards/akb/eb46/info.json | 56 | ||||
-rw-r--r-- | keyboards/akb/eb46/keymaps/default/keymap.c | 34 | ||||
-rw-r--r-- | keyboards/akb/eb46/readme.md | 13 | ||||
-rw-r--r-- | keyboards/akb/eb46/rules.mk | 18 |
7 files changed, 228 insertions, 0 deletions
diff --git a/keyboards/akb/eb46/config.h b/keyboards/akb/eb46/config.h new file mode 100644 index 000000000..644cd9730 --- /dev/null +++ b/keyboards/akb/eb46/config.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | Copyright 2019 Elliot Powell | ||
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 0x4646 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Elliot Powell | ||
27 | #define PRODUCT eb46 | ||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 4 | ||
30 | #define MATRIX_COLS 13 | ||
31 | |||
32 | /* | ||
33 | * Keyboard Matrix Assignments | ||
34 | * | ||
35 | * Change this to how you wired your keyboard | ||
36 | * COLS: AVR pins used for columns, left to right | ||
37 | * ROWS: AVR pins used for rows, top to bottom | ||
38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
40 | * | ||
41 | */ | ||
42 | #define MATRIX_ROW_PINS \ | ||
43 | { B5, B4, D7, B6 } | ||
44 | #define MATRIX_COL_PINS \ | ||
45 | { B0, B1, B2, B3, B7, D0, D1, D2, D3, D5, D4, D6, C6 } | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
51 | #define DEBOUNCE 5 | ||
diff --git a/keyboards/akb/eb46/eb46.c b/keyboards/akb/eb46/eb46.c new file mode 100644 index 000000000..a2113d0fe --- /dev/null +++ b/keyboards/akb/eb46/eb46.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 "eb46.h" | ||
diff --git a/keyboards/akb/eb46/eb46.h b/keyboards/akb/eb46/eb46.h new file mode 100644 index 000000000..8dd5290b8 --- /dev/null +++ b/keyboards/akb/eb46/eb46.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 | #include "quantum.h" | ||
18 | |||
19 | /* This a shortcut to help you visually see your layout. | ||
20 | * | ||
21 | * The first section contains all of the arguments representing the physical | ||
22 | * layout of the board and position of the keys. | ||
23 | * | ||
24 | * The second converts the arguments into a two-dimensional array which | ||
25 | * represents the switch matrix. | ||
26 | */ | ||
27 | #define xxx KC_NO | ||
28 | |||
29 | #define LAYOUT(\ | ||
30 | k000, k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b,\ | ||
31 | k100, k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, \ | ||
32 | k200, k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, \ | ||
33 | k300, k30, k31, k32, k33, k36, k38, k39, k3a \ | ||
34 | ) \ | ||
35 | { \ | ||
36 | {k000, k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b},\ | ||
37 | {k100, k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, xxx},\ | ||
38 | {k200, k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, xxx},\ | ||
39 | {k300, k30, k31, k32, k33, xxx, xxx, k36, xxx, k38, k39, k3a, xxx} \ | ||
40 | } | ||
diff --git a/keyboards/akb/eb46/info.json b/keyboards/akb/eb46/info.json new file mode 100644 index 000000000..dbcc9abb8 --- /dev/null +++ b/keyboards/akb/eb46/info.json | |||
@@ -0,0 +1,56 @@ | |||
1 | { | ||
2 | "keyboard_name": "eb46", | ||
3 | "maintainer": "e11i0t23", | ||
4 | "layouts": { | ||
5 | "LAYOUT": { | ||
6 | "layout": [ | ||
7 | { "label": "F1", "x": 0, "y": 0 }, | ||
8 | { "label": "Esc", "x": 1.25, "y": 0 }, | ||
9 | { "label": "Q", "x": 2.25, "y": 0 }, | ||
10 | { "label": "W", "x": 3.25, "y": 0 }, | ||
11 | { "label": "E", "x": 4.25, "y": 0 }, | ||
12 | { "label": "R", "x": 5.25, "y": 0 }, | ||
13 | { "label": "T", "x": 6.25, "y": 0 }, | ||
14 | { "label": "Y", "x": 7.25, "y": 0 }, | ||
15 | { "label": "U", "x": 8.25, "y": 0 }, | ||
16 | { "label": "I", "x": 9.25, "y": 0 }, | ||
17 | { "label": "O", "x": 10.25, "y": 0 }, | ||
18 | { "label": "P", "x": 11.25, "y": 0 }, | ||
19 | { "label": "BackSpace", "x": 12.25, "y": 0 }, | ||
20 | { "label": "F2", "x": 0, "y": 1 }, | ||
21 | { "label": "Tab", "x": 1.25, "y": 1, "w": 1.25 }, | ||
22 | { "label": "A", "x": 2.5, "y": 1 }, | ||
23 | { "label": "S", "x": 3.5, "y": 1 }, | ||
24 | { "label": "D", "x": 4.5, "y": 1 }, | ||
25 | { "label": "F", "x": 5.5, "y": 1 }, | ||
26 | { "label": "G", "x": 6.5, "y": 1 }, | ||
27 | { "label": "H", "x": 7.5, "y": 1 }, | ||
28 | { "label": "J", "x": 8.5, "y": 1 }, | ||
29 | { "label": "K", "x": 9.5, "y": 1 }, | ||
30 | { "label": "L", "x": 10.5, "y": 1 }, | ||
31 | { "label": "Enter", "x": 11.5, "y": 1, "w": 1.75 }, | ||
32 | { "label": "F3", "x": 0, "y": 2 }, | ||
33 | { "label": "Shift", "x": 1.25, "y": 2, "w": 1.75 }, | ||
34 | { "label": "Z", "x": 3, "y": 2 }, | ||
35 | { "label": "X", "x": 4, "y": 2 }, | ||
36 | { "label": "C", "x": 5, "y": 2 }, | ||
37 | { "label": "V", "x": 6, "y": 2 }, | ||
38 | { "label": "B", "x": 7, "y": 2 }, | ||
39 | { "label": "N", "x": 8, "y": 2 }, | ||
40 | { "label": "M", "x": 9, "y": 2 }, | ||
41 | { "label": "<", "x": 10, "y": 2 }, | ||
42 | { "label": ">", "x": 11, "y": 2 }, | ||
43 | { "label": "RShift", "x": 12, "y": 2, "w": 1.25 }, | ||
44 | { "label": "F4", "x": 0, "y": 3 }, | ||
45 | { "label": "Ctrl", "x": 1.25, "y": 3, "w": 1.25 }, | ||
46 | { "label": "Win", "x": 2.5, "y": 3 }, | ||
47 | { "label": "Alt", "x": 3.5, "y": 3, "w": 1.25 }, | ||
48 | { "label": "FN0", "x": 4.75, "y": 3, "w": 2.25 }, | ||
49 | { "label": "Space", "x": 7, "y": 3, "w": 2.75 }, | ||
50 | { "label": "Menu", "x": 9.75, "y": 3 }, | ||
51 | { "label": "RAlt", "x": 10.75, "y": 3, "w": 1.25 }, | ||
52 | { "label": "Super", "x": 12.25, "y": 3 } | ||
53 | ] | ||
54 | } | ||
55 | } | ||
56 | } | ||
diff --git a/keyboards/akb/eb46/keymaps/default/keymap.c b/keyboards/akb/eb46/keymaps/default/keymap.c new file mode 100644 index 000000000..c2114cc65 --- /dev/null +++ b/keyboards/akb/eb46/keymaps/default/keymap.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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( /* Base */ | ||
20 | KC_F5, KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
21 | KC_PGUP, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
22 | KC_PGDN, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, | ||
23 | KC_ESC, LCTL_T(KC_LBRC), KC_LGUI, KC_LALT, KC_SPC, LT(1, KC_SPC), KC_RALT, MO(2), RCTL_T(KC_RBRC) ), | ||
24 | [1] = LAYOUT( /* Base */ | ||
25 | _______, _______, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0, _______, | ||
26 | _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_UP, KC_DOWN, KC_RIGHT, _______, | ||
27 | _______, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
28 | _______, _______, _______, _______, _______, _______, _______, _______, _______ ), | ||
29 | [2] = LAYOUT( /* Base */ | ||
30 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______, KC_SCLN, KC_QUOT, KC_NUHS, _______, | ||
32 | _______, _______, KC_NUBS, _______, _______, _______, _______, _______, _______, KC_SLSH, _______, _______, | ||
33 | _______, _______, _______, _______, _______, _______, _______, _______, RESET ), | ||
34 | }; | ||
diff --git a/keyboards/akb/eb46/readme.md b/keyboards/akb/eb46/readme.md new file mode 100644 index 000000000..e7d104622 --- /dev/null +++ b/keyboards/akb/eb46/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # eb46 | ||
2 | |||
3 | EB46: A 40% plus macro keys | ||
4 | |||
5 | Keyboard Maintainer: [Elliot Powell](https://github.com/e11i0t23), [/u/e11i0t23 on reddit](https://reddit.com/u/e11i0t23) | ||
6 | Hardware Supported: EB46 PCB | ||
7 | Hardware Availability: Coming Soon | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make akb/eb46: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/akb/eb46/rules.mk b/keyboards/akb/eb46/rules.mk new file mode 100644 index 000000000..717cc07b4 --- /dev/null +++ b/keyboards/akb/eb46/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 = 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 = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||