aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMCKeebs <72995608+chrisquocmai@users.noreply.github.com>2021-04-03 00:18:15 -0400
committerGitHub <noreply@github.com>2021-04-02 21:18:15 -0700
commit8b98e67643e664dd28b96f7e40372f5b93595050 (patch)
tree4ee4912d150d6d543d4dbbc792e252a277d299aa
parent68762639610d87ca1cd49752dfbc993ae6ee2f6a (diff)
downloadqmk_firmware-8b98e67643e664dd28b96f7e40372f5b93595050.tar.gz
qmk_firmware-8b98e67643e664dd28b96f7e40372f5b93595050.zip
[Keyboard] Add pkb65 keyboard (#12230)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/pkb65/config.h68
-rw-r--r--keyboards/pkb65/info.json77
-rw-r--r--keyboards/pkb65/keymaps/default/keymap.c40
-rw-r--r--keyboards/pkb65/keymaps/via/keymap.c53
-rw-r--r--keyboards/pkb65/keymaps/via/rules.mk2
-rw-r--r--keyboards/pkb65/pkb65.c20
-rw-r--r--keyboards/pkb65/pkb65.h38
-rw-r--r--keyboards/pkb65/readme.md16
-rw-r--r--keyboards/pkb65/rules.mk22
9 files changed, 336 insertions, 0 deletions
diff --git a/keyboards/pkb65/config.h b/keyboards/pkb65/config.h
new file mode 100644
index 000000000..7c6af9f84
--- /dev/null
+++ b/keyboards/pkb65/config.h
@@ -0,0 +1,68 @@
1/*
2
3Copyright 2021 MCKeebs <mckeebdesign@gmail.com>
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
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19*/
20
21
22#pragma once
23
24#include "config_common.h"
25
26/* USB Device descriptor parameter */
27#define VENDOR_ID 0x4D43 // MCKeebs
28#define PRODUCT_ID 0x6060
29#define DEVICE_VER 0x0001
30#define MANUFACTURER MCKeebs
31#define PRODUCT PKB65
32
33/* key matrix size */
34#define MATRIX_ROWS 5
35#define MATRIX_COLS 14
36
37/* key matrix pins */
38#define MATRIX_ROW_PINS { C7, C6, B6, B7, F0 }
39#define MATRIX_COL_PINS { B0, B1, B2, B3, D0, D1, D2, D3, D5, D4, D6, D7, B4, B5 }
40#define UNUSED_PINS
41
42/* COL2ROW or ROW2COL */
43#define DIODE_DIRECTION COL2ROW
44
45/* number of backlight levels */
46
47#ifdef BACKLIGHT_PIN
48#define BACKLIGHT_LEVELS 0
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
61
62#ifdef RGB_DI_PIN
63#define RGBLIGHT_ANIMATIONS
64#define RGBLED_NUM 0
65#define RGBLIGHT_HUE_STEP 8
66#define RGBLIGHT_SAT_STEP 8
67#define RGBLIGHT_VAL_STEP 8
68#endif
diff --git a/keyboards/pkb65/info.json b/keyboards/pkb65/info.json
new file mode 100644
index 000000000..e21010015
--- /dev/null
+++ b/keyboards/pkb65/info.json
@@ -0,0 +1,77 @@
1{
2 "keyboard_name": "PKB65",
3 "url": "",
4 "maintainer": "qmk",
5 "width": 16,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"!", "x":1, "y":0},
12 {"label":"@", "x":2, "y":0},
13 {"label":"#", "x":3, "y":0},
14 {"label":"$", "x":4, "y":0},
15 {"label":"%", "x":5, "y":0},
16 {"label":"^", "x":6, "y":0},
17 {"label":"&", "x":7, "y":0},
18 {"label":"*", "x":8, "y":0},
19 {"label":"(", "x":9, "y":0},
20 {"label":")", "x":10, "y":0},
21 {"label":"_", "x":11, "y":0},
22 {"label":"+", "x":12, "y":0},
23 {"label":"Backspace", "x":13, "y":0, "w":2},
24 {"label":"Tab", "x":0, "y":1, "w":1.5},
25 {"label":"Q", "x":1.5, "y":1},
26 {"label":"W", "x":2.5, "y":1},
27 {"label":"E", "x":3.5, "y":1},
28 {"label":"R", "x":4.5, "y":1},
29 {"label":"T", "x":5.5, "y":1},
30 {"label":"Y", "x":6.5, "y":1},
31 {"label":"U", "x":7.5, "y":1},
32 {"label":"I", "x":8.5, "y":1},
33 {"label":"O", "x":9.5, "y":1},
34 {"label":"P", "x":10.5, "y":1},
35 {"label":"{", "x":11.5, "y":1},
36 {"label":"}", "x":12.5, "y":1},
37 {"label":"|", "x":13.5, "y":1, "w":1.5},
38 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
39 {"label":"A", "x":1.75, "y":2},
40 {"label":"S", "x":2.75, "y":2},
41 {"label":"D", "x":3.75, "y":2},
42 {"label":"F", "x":4.75, "y":2},
43 {"label":"G", "x":5.75, "y":2},
44 {"label":"H", "x":6.75, "y":2},
45 {"label":"J", "x":7.75, "y":2},
46 {"label":"K", "x":8.75, "y":2},
47 {"label":"L", "x":9.75, "y":2},
48 {"label":":", "x":10.75, "y":2},
49 {"label":"\"", "x":11.75, "y":2},
50 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
51 {"label":"Delete", "x":15, "y":2},
52 {"label":"Shift", "x":0, "y":3, "w":2.25},
53 {"label":"Z", "x":2.25, "y":3},
54 {"label":"X", "x":3.25, "y":3},
55 {"label":"C", "x":4.25, "y":3},
56 {"label":"V", "x":5.25, "y":3},
57 {"label":"B", "x":6.25, "y":3},
58 {"label":"N", "x":7.25, "y":3},
59 {"label":"M", "x":8.25, "y":3},
60 {"label":"<", "x":9.25, "y":3},
61 {"label":">", "x":10.25, "y":3},
62 {"label":"?", "x":11.25, "y":3},
63 {"label":"Shift", "x":12.25, "y":3, "w":1.75},
64 {"label":"\u2191", "x":14, "y":3},
65 {"label":"PrtSc", "x":15, "y":3},
66 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
67 {"label":"Win", "x":1.25, "y":4, "w":1.25},
68 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
69 {"x":3.75, "y":4, "w":6.25},
70 {"label":"Alt", "x":10, "y":4, "w":1.25},
71 {"label":"Fn", "x":11.25, "y":4, "w":1.25},
72 {"label":"\u2190", "x":13, "y":4},
73 {"label":"\u2193", "x":14, "y":4},
74 {"label":"\u2192", "x":15, "y":4}]
75 }
76 }
77} \ No newline at end of file
diff --git a/keyboards/pkb65/keymaps/default/keymap.c b/keyboards/pkb65/keymaps/default/keymap.c
new file mode 100644
index 000000000..74528cd2b
--- /dev/null
+++ b/keyboards/pkb65/keymaps/default/keymap.c
@@ -0,0 +1,40 @@
1/*
2
3Copyright 2021 MCKeebs <mckeebdesign@gmail.com>
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
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19*/
20#include QMK_KEYBOARD_H
21
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23
24 LAYOUT(
25 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,
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, KC_END,
28 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, KC_DEL,
29 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
30
31 LAYOUT(
32 KC_GRAVE, 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,
33 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,
34 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, RESET,
35 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,
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
37
38
39};
40
diff --git a/keyboards/pkb65/keymaps/via/keymap.c b/keyboards/pkb65/keymaps/via/keymap.c
new file mode 100644
index 000000000..fc3386145
--- /dev/null
+++ b/keyboards/pkb65/keymaps/via/keymap.c
@@ -0,0 +1,53 @@
1/*
2
3Copyright 2021 MCKeebs <mckeebdesign@gmail.com>
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
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19*/
20#include QMK_KEYBOARD_H
21
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23
24 LAYOUT(
25 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,
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, KC_DEL,
28 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, KC_PSCR,
29 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
30
31 LAYOUT(
32 KC_GRAVE, 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,
33 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,
34 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, RESET,
35 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,
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
37
38 LAYOUT(
39 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,
40 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,
41 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,
42 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,
43 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
44
45 LAYOUT(
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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 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,
49 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,
50 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
51
52
53};
diff --git a/keyboards/pkb65/keymaps/via/rules.mk b/keyboards/pkb65/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/pkb65/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/pkb65/pkb65.c b/keyboards/pkb65/pkb65.c
new file mode 100644
index 000000000..3e0796032
--- /dev/null
+++ b/keyboards/pkb65/pkb65.c
@@ -0,0 +1,20 @@
1/*
2
3Copyright 2021 MCKeebs <mckeebdesign@gmail.com>
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
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19*/
20#include "pkb65.h"
diff --git a/keyboards/pkb65/pkb65.h b/keyboards/pkb65/pkb65.h
new file mode 100644
index 000000000..770f3db45
--- /dev/null
+++ b/keyboards/pkb65/pkb65.h
@@ -0,0 +1,38 @@
1/*
2
3Copyright 2021 MCKeebs <mckeebdesign@gmail.com>
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
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18
19*/
20#pragma once
21
22#include "quantum.h"
23
24#define LAYOUT( \
25 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, \
26 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
27 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, \
28 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
29 K400, K401, K402, K405, K409, K410, K411, K412, K413 \
30) { \
31 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013 }, \
32 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113 }, \
33 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213 }, \
34 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313 }, \
35 { K400, K401, K402, KC_NO, KC_NO, K405, KC_NO, KC_NO, KC_NO, K409, K410, K411, K412, K413 } \
36}
37
38
diff --git a/keyboards/pkb65/readme.md b/keyboards/pkb65/readme.md
new file mode 100644
index 000000000..b47552da0
--- /dev/null
+++ b/keyboards/pkb65/readme.md
@@ -0,0 +1,16 @@
1# PKB65
2
3![PKB65 Layout Image](https://i.imgur.com/0bqpIb8.png)
4
5A regular 65% layout keyboard. This will be the default layout flashed for all pkb65 boards.
6Made and sold by MCKeebs. [More info on MCKeebDeisgn](https://www.mckeebdesign.com)
7
8* Keyboard Maintainer: [MCKeebs](https://github.com/chrisquocmai)
9* Hardware Supported: [PKB65 PCB](https://https://mckeebdesign.com/PKB65/)
10* Hardware Availability: [PKB65](https://mckeebdesign.com/PKB65/)
11
12Make example for this keyboard (after setting up your build environment:
13
14 make pkb65:default
15
16See 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/pkb65/rules.mk b/keyboards/pkb65/rules.mk
new file mode 100644
index 000000000..91f48bd44
--- /dev/null
+++ b/keyboards/pkb65/rules.mk
@@ -0,0 +1,22 @@
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 = full # Virtual DIP switch configuration
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
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output