aboutsummaryrefslogtreecommitdiff
path: root/keyboards/amjkeyboard
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-07-30 00:21:44 -0700
committerDrashna Jaelre <drashna@live.com>2019-07-30 00:21:44 -0700
commit77a1c75cf622bb74105b3bb64e9dc2ef182c1f63 (patch)
tree907ff74b01c0d538da5080f04c444f4f4e0c06a0 /keyboards/amjkeyboard
parent5cf7dbedd2e68ec40b0666f10c47f9601e1ae275 (diff)
downloadqmk_firmware-77a1c75cf622bb74105b3bb64e9dc2ef182c1f63.tar.gz
qmk_firmware-77a1c75cf622bb74105b3bb64e9dc2ef182c1f63.zip
[Keyboard] Add AMJ66 keyboard (#5945)
* Added nearly perfect config for AMJ66, only missing top right key. * Correct the layout macro * Add layout mock-up to amj66.h * Update and comment out the backlight definitions in config.h The backlight pin was found to be D4, but there appears to be a bug in QMK that affects this keyboard. Commenting out for now. * Try to make a sensible default keymap * Add testing keymap for FSund Include the keymap that was being used for testing. Don't forget to refactor this later into an actually useful keymap. * Suggestions by fauxpark - uncomment the backlight configuration - fix the default keymap - remove commented MCU rule - specify the bootloader - make mental note to not try to write code at 3:30 in the morning * Add LAYOUT_66_ansi and LAYOUT_66_iso macros - include QMK Configurator data - enable Community Layout support * Add comments about layout variants to amj66.h * Add #define BACKLIGHT_ON_STATE 1 Partial fix for backlight breathing. - Requires #5983 to fix fully (confirmed by FSund and fauxpark) Co-Authored-By: fauxpark <fauxpark@gmail.com> Co-Authored-By: Filip Sund <filip.sund@gmail.com> * DEBOUNCING_DELAY -> DEBOUNCE * Move AMJ66 files into new AMJKeyboard directory * Correct Manufacturer in USB Device Descriptor * Remove comment regarding source fork * Correct the readme * Update default keymap to match the details given in its readme * White-space edit fsund_test keymap Makes its formatting more consistent with other 66% keymaps. No logic changes. * Linting info.json Debug-style linting (one key object per line) and minor edits to key labels. * Remove fsund_test keymap * Add FSund as a maintainer in info.json
Diffstat (limited to 'keyboards/amjkeyboard')
-rw-r--r--keyboards/amjkeyboard/amj66/amj66.c43
-rw-r--r--keyboards/amjkeyboard/amj66/amj66.h79
-rw-r--r--keyboards/amjkeyboard/amj66/config.h55
-rw-r--r--keyboards/amjkeyboard/amj66/info.json227
-rw-r--r--keyboards/amjkeyboard/amj66/keymaps/default/config.h19
-rw-r--r--keyboards/amjkeyboard/amj66/keymaps/default/keymap.c36
-rw-r--r--keyboards/amjkeyboard/amj66/keymaps/default/readme.md12
-rw-r--r--keyboards/amjkeyboard/amj66/readme.md15
-rw-r--r--keyboards/amjkeyboard/amj66/rules.mk70
9 files changed, 556 insertions, 0 deletions
diff --git a/keyboards/amjkeyboard/amj66/amj66.c b/keyboards/amjkeyboard/amj66/amj66.c
new file mode 100644
index 000000000..05e29975b
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/amj66.c
@@ -0,0 +1,43 @@
1/* Copyright 2018 Alex Peters
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 "amj66.h"
17
18void matrix_init_kb(void) {
19 // put your keyboard start-up code here
20 // runs once when the firmware starts up
21
22 matrix_init_user();
23}
24
25void matrix_scan_kb(void) {
26 // put your looping keyboard code here
27 // runs every cycle (a lot)
28
29 matrix_scan_user();
30}
31
32bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
33 // put your per-action keyboard code here
34 // runs for every action, just before processing by the firmware
35
36 return process_record_user(keycode, record);
37}
38
39void led_set_kb(uint8_t usb_led) {
40 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
41
42 led_set_user(usb_led);
43}
diff --git a/keyboards/amjkeyboard/amj66/amj66.h b/keyboards/amjkeyboard/amj66/amj66.h
new file mode 100644
index 000000000..e2315f5e9
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/amj66.h
@@ -0,0 +1,79 @@
1/* Copyright 2018 Alex Peters
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/* LAYOUT_all
23 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ ┌───┐
24 * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0A │0B │0C │0D │0E │ │0F │ ISO Enter
25 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤ ├───┤ ┌─────┐
26 * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1A │1B │1C │1D │ │1E │ │2C │
27 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤ └───┘ ┌──┴┐ │
28 * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2A │2B │2C │ │1D │ │
29 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┬─┴─┐ └───┴────┘
30 * │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3A │3B │3C │3D │3E │
31 * ├────┴┬──┴─┬─┴──┬┴───┴───┴─┬─┴───┴───┴┬──┴─┬─┴──┬┴────┼───┼───┼───┐
32 * │40 │41 │42 │43 │44 │45 │46 │47 │48 │49 │4A │
33 * └─────┴────┴────┴──────────┴──────────┴────┴────┴─────┴───┴───┴───┘
34 * 2u Backspace = k0D
35 * ISO # = k1D
36 * 2.25u Right Shift = k3C
37 * 6.25u Space = k44
38 */
39#define LAYOUT_all( \
40 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, k0F, \
41 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, \
42 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, \
43 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, \
44 k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A \
45) { \
46 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E, k0F }, \
47 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, KC_NO }, \
48 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, KC_NO, KC_NO, KC_NO }, \
49 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E, KC_NO }, \
50 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO } \
51}
52
53#define LAYOUT_66_ansi( \
54 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0F, \
55 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, \
56 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, \
57 k30, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3E, \
58 k40, k41, k42, k44, k45, k46, k47, k48, k49, k4A \
59) { \
60 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, KC_NO, k0F }, \
61 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, KC_NO }, \
62 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, KC_NO, KC_NO, KC_NO }, \
63 { k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, KC_NO, k3E, KC_NO }, \
64 { k40, k41, k42, KC_NO, k44, k45, k46, k47, k48, k49, k4A, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO } \
65}
66
67#define LAYOUT_66_iso( \
68 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0F, \
69 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1E, \
70 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k1D, k2C, \
71 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3E, \
72 k40, k41, k42, k44, k45, k46, k47, k48, k49, k4A \
73) { \
74 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, KC_NO, k0F }, \
75 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E, KC_NO }, \
76 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, KC_NO, KC_NO, KC_NO }, \
77 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, KC_NO, k3E, KC_NO }, \
78 { k40, k41, k42, KC_NO, k44, k45, k46, k47, k48, k49, k4A, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO } \
79}
diff --git a/keyboards/amjkeyboard/amj66/config.h b/keyboards/amjkeyboard/amj66/config.h
new file mode 100644
index 000000000..5569bcd91
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/config.h
@@ -0,0 +1,55 @@
1/*
2Copyright 2018 Alex Peters
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 0xBD66
25#define DEVICE_VER 0x0001
26#define MANUFACTURER AMJKeyboard
27#define PRODUCT AMJ66
28#define DESCRIPTION QMK keyboard firmware for AMJ66
29
30/* Key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 16
33
34/* Keyboard Matrix Assignments */
35#define MATRIX_ROW_PINS { F7, F6, F5, F4, F1 }
36#define MATRIX_COL_PINS { F0, B3, B2, B1, B0, B7, D0, D1, D2, D3, D5, D6, D7, B4, B5, B6 }
37#define UNUSED_PINS
38
39/* COL2ROW, ROW2COL*/
40#define DIODE_DIRECTION COL2ROW
41
42#define BACKLIGHT_PIN D4
43#define BACKLIGHT_LEVELS 3
44#define BACKLIGHT_BREATHING
45#define BREATHING_PERIOD 6
46#define BACKLIGHT_ON_STATE 1
47
48/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
49#define DEBOUNCE 5
50
51/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
52#define LOCKING_SUPPORT_ENABLE
53
54/* Locking resynchronize hack */
55#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/amjkeyboard/amj66/info.json b/keyboards/amjkeyboard/amj66/info.json
new file mode 100644
index 000000000..93656c445
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/info.json
@@ -0,0 +1,227 @@
1{
2 "keyboard_name": "AMJ66",
3 "url": "",
4 "maintainer": "FSund, qmk",
5 "width": 16.5,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_all": {
9 "key_count": 70,
10 "layout": [
11 {"label":"~", "x":0, "y":0},
12 {"label":"!", "x":1, "y":0},
13 {"label":"@", "x":2, "y":0},
14 {"label":"#", "x":3, "y":0},
15 {"label":"$", "x":4, "y":0},
16 {"label":"%", "x":5, "y":0},
17 {"label":"^", "x":6, "y":0},
18 {"label":"&", "x":7, "y":0},
19 {"label":"*", "x":8, "y":0},
20 {"label":"(", "x":9, "y":0},
21 {"label":")", "x":10, "y":0},
22 {"label":"_", "x":11, "y":0},
23 {"label":"+", "x":12, "y":0},
24 {"label":"|", "x":13, "y":0},
25 {"label":"~", "x":14, "y":0},
26 {"label":"Insert", "x":15.5, "y":0},
27 {"label":"Tab", "x":0, "y":1, "w":1.5},
28 {"label":"Q", "x":1.5, "y":1},
29 {"label":"W", "x":2.5, "y":1},
30 {"label":"E", "x":3.5, "y":1},
31 {"label":"R", "x":4.5, "y":1},
32 {"label":"T", "x":5.5, "y":1},
33 {"label":"Y", "x":6.5, "y":1},
34 {"label":"U", "x":7.5, "y":1},
35 {"label":"I", "x":8.5, "y":1},
36 {"label":"O", "x":9.5, "y":1},
37 {"label":"P", "x":10.5, "y":1},
38 {"label":"{", "x":11.5, "y":1},
39 {"label":"}", "x":12.5, "y":1},
40 {"label":"Backspace", "x":13.5, "y":1, "w":1.5},
41 {"label":"Delete", "x":15.5, "y":1},
42 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
43 {"label":"A", "x":1.75, "y":2},
44 {"label":"S", "x":2.75, "y":2},
45 {"label":"D", "x":3.75, "y":2},
46 {"label":"F", "x":4.75, "y":2},
47 {"label":"G", "x":5.75, "y":2},
48 {"label":"H", "x":6.75, "y":2},
49 {"label":"J", "x":7.75, "y":2},
50 {"label":"K", "x":8.75, "y":2},
51 {"label":"L", "x":9.75, "y":2},
52 {"label":":", "x":10.75, "y":2},
53 {"label":"\"", "x":11.75, "y":2},
54 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
55 {"label":"Shift", "x":0, "y":3, "w":1.25},
56 {"label":"ISO Backslash", "x":1.25, "y":3},
57 {"label":"Z", "x":2.25, "y":3},
58 {"label":"X", "x":3.25, "y":3},
59 {"label":"C", "x":4.25, "y":3},
60 {"label":"V", "x":5.25, "y":3},
61 {"label":"B", "x":6.25, "y":3},
62 {"label":"N", "x":7.25, "y":3},
63 {"label":"M", "x":8.25, "y":3},
64 {"label":"<", "x":9.25, "y":3},
65 {"label":">", "x":10.25, "y":3},
66 {"label":"?", "x":11.25, "y":3},
67 {"label":"Shift", "x":12.25, "y":3, "w":1.25},
68 {"label":"HHKB Fn", "x":13.5, "y":3},
69 {"label":"Up", "x":14.5, "y":3},
70 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
71 {"label":"GUI", "x":1.25, "y":4, "w":1.25},
72 {"label":"Alt", "x":2.5, "y":4, "w":1.5},
73 {"label":"Space", "x":4, "y":4, "w":2.75},
74 {"label":"Space", "x":6.75, "y":4, "w":2.75},
75 {"label":"Alt", "x":9.5, "y":4, "w":1.5},
76 {"label":"GUI", "x":11, "y":4, "w":1.25},
77 {"label":"Ctrl", "x":12.25, "y":4, "w":1.25},
78 {"label":"Left", "x":13.5, "y":4},
79 {"label":"Down", "x":14.5, "y":4},
80 {"label":"Right", "x":15.5, "y":4}
81 ]
82 },
83 "LAYOUT_66_ansi": {
84 "key_count": 66,
85 "layout": [
86 {"label":"~", "x":0, "y":0},
87 {"label":"!", "x":1, "y":0},
88 {"label":"@", "x":2, "y":0},
89 {"label":"#", "x":3, "y":0},
90 {"label":"$", "x":4, "y":0},
91 {"label":"%", "x":5, "y":0},
92 {"label":"^", "x":6, "y":0},
93 {"label":"&", "x":7, "y":0},
94 {"label":"*", "x":8, "y":0},
95 {"label":"(", "x":9, "y":0},
96 {"label":")", "x":10, "y":0},
97 {"label":"_", "x":11, "y":0},
98 {"label":"+", "x":12, "y":0},
99 {"label":"Backspace", "x":13, "y":0, "w":2},
100 {"label":"Insert", "x":15.5, "y":0},
101 {"label":"Tab", "x":0, "y":1, "w":1.5},
102 {"label":"Q", "x":1.5, "y":1},
103 {"label":"W", "x":2.5, "y":1},
104 {"label":"E", "x":3.5, "y":1},
105 {"label":"R", "x":4.5, "y":1},
106 {"label":"T", "x":5.5, "y":1},
107 {"label":"Y", "x":6.5, "y":1},
108 {"label":"U", "x":7.5, "y":1},
109 {"label":"I", "x":8.5, "y":1},
110 {"label":"O", "x":9.5, "y":1},
111 {"label":"P", "x":10.5, "y":1},
112 {"label":"{", "x":11.5, "y":1},
113 {"label":"}", "x":12.5, "y":1},
114 {"label":"|", "x":13.5, "y":1, "w":1.5},
115 {"label":"Delete", "x":15.5, "y":1},
116 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
117 {"label":"A", "x":1.75, "y":2},
118 {"label":"S", "x":2.75, "y":2},
119 {"label":"D", "x":3.75, "y":2},
120 {"label":"F", "x":4.75, "y":2},
121 {"label":"G", "x":5.75, "y":2},
122 {"label":"H", "x":6.75, "y":2},
123 {"label":"J", "x":7.75, "y":2},
124 {"label":"K", "x":8.75, "y":2},
125 {"label":"L", "x":9.75, "y":2},
126 {"label":":", "x":10.75, "y":2},
127 {"label":"\"", "x":11.75, "y":2},
128 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
129 {"label":"Shift", "x":0, "y":3, "w":2.25},
130 {"label":"Z", "x":2.25, "y":3},
131 {"label":"X", "x":3.25, "y":3},
132 {"label":"C", "x":4.25, "y":3},
133 {"label":"V", "x":5.25, "y":3},
134 {"label":"B", "x":6.25, "y":3},
135 {"label":"N", "x":7.25, "y":3},
136 {"label":"M", "x":8.25, "y":3},
137 {"label":"<", "x":9.25, "y":3},
138 {"label":">", "x":10.25, "y":3},
139 {"label":"?", "x":11.25, "y":3},
140 {"label":"Shift", "x":12.25, "y":3, "w":2.25},
141 {"label":"Up", "x":14.5, "y":3},
142 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
143 {"label":"GUI", "x":1.25, "y":4, "w":1.25},
144 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
145 {"label":"Space", "x":3.75, "y":4, "w":6.25},
146 {"label":"Alt", "x":10, "y":4, "w":1.25},
147 {"label":"Fn", "x":11.25, "y":4},
148 {"label":"Ctrl", "x":12.25, "y":4, "w":1.25},
149 {"label":"Left", "x":13.5, "y":4},
150 {"label":"Down", "x":14.5, "y":4},
151 {"label":"Right", "x":15.5, "y":4}
152 ]
153 },
154 "LAYOUT_66_iso": {
155 "key_count": 67,
156 "layout": [
157 {"label":"\u00ac", "x":0, "y":0},
158 {"label":"!", "x":1, "y":0},
159 {"label":"\"", "x":2, "y":0},
160 {"label":"\u00a3", "x":3, "y":0},
161 {"label":"$", "x":4, "y":0},
162 {"label":"%", "x":5, "y":0},
163 {"label":"^", "x":6, "y":0},
164 {"label":"&", "x":7, "y":0},
165 {"label":"*", "x":8, "y":0},
166 {"label":"(", "x":9, "y":0},
167 {"label":")", "x":10, "y":0},
168 {"label":"_", "x":11, "y":0},
169 {"label":"+", "x":12, "y":0},
170 {"label":"Backspace", "x":13, "y":0, "w":2},
171 {"label":"Insert", "x":15.5, "y":0},
172 {"label":"Tab", "x":0, "y":1, "w":1.5},
173 {"label":"Q", "x":1.5, "y":1},
174 {"label":"W", "x":2.5, "y":1},
175 {"label":"E", "x":3.5, "y":1},
176 {"label":"R", "x":4.5, "y":1},
177 {"label":"T", "x":5.5, "y":1},
178 {"label":"Y", "x":6.5, "y":1},
179 {"label":"U", "x":7.5, "y":1},
180 {"label":"I", "x":8.5, "y":1},
181 {"label":"O", "x":9.5, "y":1},
182 {"label":"P", "x":10.5, "y":1},
183 {"label":"{", "x":11.5, "y":1},
184 {"label":"}", "x":12.5, "y":1},
185 {"label":"Delete", "x":15.5, "y":1},
186 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
187 {"label":"A", "x":1.75, "y":2},
188 {"label":"S", "x":2.75, "y":2},
189 {"label":"D", "x":3.75, "y":2},
190 {"label":"F", "x":4.75, "y":2},
191 {"label":"G", "x":5.75, "y":2},
192 {"label":"H", "x":6.75, "y":2},
193 {"label":"J", "x":7.75, "y":2},
194 {"label":"K", "x":8.75, "y":2},
195 {"label":"L", "x":9.75, "y":2},
196 {"label":":", "x":10.75, "y":2},
197 {"label":"@", "x":11.75, "y":2},
198 {"label":"~", "x":12.75, "y":2},
199 {"label":"Enter", "x":13.75, "y":1, "w":1.25, "h":2},
200 {"label":"Shift", "x":0, "y":3, "w":1.25},
201 {"label":"|", "x":1.25, "y":3},
202 {"label":"Z", "x":2.25, "y":3},
203 {"label":"X", "x":3.25, "y":3},
204 {"label":"C", "x":4.25, "y":3},
205 {"label":"V", "x":5.25, "y":3},
206 {"label":"B", "x":6.25, "y":3},
207 {"label":"N", "x":7.25, "y":3},
208 {"label":"M", "x":8.25, "y":3},
209 {"label":"<", "x":9.25, "y":3},
210 {"label":">", "x":10.25, "y":3},
211 {"label":"?", "x":11.25, "y":3},
212 {"label":"Shift", "x":12.25, "y":3, "w":2.25},
213 {"label":"Up", "x":14.5, "y":3},
214 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
215 {"label":"GUI", "x":1.25, "y":4, "w":1.25},
216 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
217 {"label":"Space", "x":3.75, "y":4, "w":6.25},
218 {"label":"AltGr", "x":10, "y":4, "w":1.25},
219 {"label":"GUI", "x":11.25, "y":4},
220 {"label":"Ctrl", "x":12.25, "y":4, "w":1.25},
221 {"label":"Left", "x":13.5, "y":4},
222 {"label":"Down", "x":14.5, "y":4},
223 {"label":"Right", "x":15.5, "y":4}
224 ]
225 }
226 }
227}
diff --git a/keyboards/amjkeyboard/amj66/keymaps/default/config.h b/keyboards/amjkeyboard/amj66/keymaps/default/config.h
new file mode 100644
index 000000000..6d42fc568
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/keymaps/default/config.h
@@ -0,0 +1,19 @@
1/* Copyright 2018 Alex Peters
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// place overrides here
diff --git a/keyboards/amjkeyboard/amj66/keymaps/default/keymap.c b/keyboards/amjkeyboard/amj66/keymaps/default/keymap.c
new file mode 100644
index 000000000..cce05a7fe
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/keymaps/default/keymap.c
@@ -0,0 +1,36 @@
1/* Copyright 2018 Alex Peters
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
20 [0] = LAYOUT_all(
21 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_GRV, KC_BSPC, KC_INS,
22 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,
23 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,
24 KC_LSFT, KC_NUBS, 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27
28 [1] = LAYOUT_all(
29 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_BSPC, KC_BSPC, KC_INS,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, KC_DEL,
31 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_BRTG, BL_STEP, KC_SLEP, _______, _______, KC_PGUP,
33 _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END
34 ),
35
36};
diff --git a/keyboards/amjkeyboard/amj66/keymaps/default/readme.md b/keyboards/amjkeyboard/amj66/keymaps/default/readme.md
new file mode 100644
index 000000000..c250695ef
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/keymaps/default/readme.md
@@ -0,0 +1,12 @@
1# The default keymap for AMJ66
2
3![AMJ66 Layout Image](https://i.imgur.com/QNpHnMe.jpg)
4
5This is a fairly universal layout that supports standard ANSI, split backspace,
6split left shift, and split right shift.
7Cycle backlight: Fn + .
8Backlight breathing: Fn + ,
9Volume Up/Down: Fn + [ and Fn + ]
10Mute: Fn + \
11Sleep: Fn + /
12Bootloader Mode: Fn + CapsLock \ No newline at end of file
diff --git a/keyboards/amjkeyboard/amj66/readme.md b/keyboards/amjkeyboard/amj66/readme.md
new file mode 100644
index 000000000..37a1f27ea
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/readme.md
@@ -0,0 +1,15 @@
1# AMJ66
2
3![AMJ66](https://i.imgur.com/qtLuL2o.jpg)
4
5A 66% keyboard formerly sold by Massdrop and KBDFans.
6
7Keyboard Maintainer: [FSund](https://github.com/fsund), [The QMK Community](https://github.com/qmk)
8Hardware Supported: AMJ66, ATmega32U4
9Hardware Availability: [Drop.com](https://drop.com/buy/kbd66-mechanical-keyboard-kit?mode=guest_open)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make amjkeyboard/amj66:default
14
15See 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/amjkeyboard/amj66/rules.mk b/keyboards/amjkeyboard/amj66/rules.mk
new file mode 100644
index 000000000..80734a990
--- /dev/null
+++ b/keyboards/amjkeyboard/amj66/rules.mk
@@ -0,0 +1,70 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection
42# Teensy halfkay
43# Pro Micro caterina
44# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu
47# atmega32a bootloadHID
48BOOTLOADER = atmel-dfu
49
50
51# Build Options
52# change yes to no to disable
53#
54BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
55MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
56EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
57CONSOLE_ENABLE = yes # Console for debug(+400)
58COMMAND_ENABLE = yes # Commands for debug and configuration
59# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
60SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
61# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
62NKRO_ENABLE = no # USB Nkey Rollover
63BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
64MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
65UNICODE_ENABLE = no # Unicode
66BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
67AUDIO_ENABLE = no # Audio output on port C6
68FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
69
70LAYOUTS = 66_ansi 66_iso