aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kbdfans
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-09-17 10:34:52 -0700
committerDrashna Jaelre <drashna@live.com>2019-09-17 10:34:52 -0700
commit86d59f1034785b9cd8cc2bfcce7016cd97d041e9 (patch)
tree38674436c41e594590e58557f64b82351488f812 /keyboards/kbdfans
parentc427023b31f544771391b4cd22d797ee14cadac3 (diff)
downloadqmk_firmware-86d59f1034785b9cd8cc2bfcce7016cd97d041e9.tar.gz
qmk_firmware-86d59f1034785b9cd8cc2bfcce7016cd97d041e9.zip
[Keyboard] KBD75 refactor (#6755)
* convert codebase to #pragma once * fix file includes - quantum.h is included at keyboard level, redundant at revision level - keyboard-level path is accessible at revision level, remove relative pathing * duplicate common layout macros from rev1 to rev2 Add the layout macros supported by both rev1 and rev2 to rev2.h directly, which exposes these layouts to QMK Configurator. * enable community layout support (75_ansi, 75_iso) * add LAYOUT_75_iso layout data It needs its own tree because its keys are in a different order from LAYOUT_iso_1u even though the physical layout is the same. * minimize rules.mk files (use QMK defaults) * use atmel-dfu bootloader rule * fix typo on rev1 info.json
Diffstat (limited to 'keyboards/kbdfans')
-rw-r--r--keyboards/kbdfans/kbd75/config.h5
-rw-r--r--keyboards/kbdfans/kbd75/kbd75.h8
-rw-r--r--keyboards/kbdfans/kbd75/rev1/info.json90
-rw-r--r--keyboards/kbdfans/kbd75/rev1/rev1.h34
-rw-r--r--keyboards/kbdfans/kbd75/rev1/rules.mk44
-rw-r--r--keyboards/kbdfans/kbd75/rev2/info.json90
-rw-r--r--keyboards/kbdfans/kbd75/rev2/rev2.h136
-rw-r--r--keyboards/kbdfans/kbd75/rev2/rules.mk44
8 files changed, 347 insertions, 104 deletions
diff --git a/keyboards/kbdfans/kbd75/config.h b/keyboards/kbdfans/kbd75/config.h
index 611e682e5..a9dc487db 100644
--- a/keyboards/kbdfans/kbd75/config.h
+++ b/keyboards/kbdfans/kbd75/config.h
@@ -1,5 +1,4 @@
1#ifndef CONFIG_H 1#pragma once
2#define CONFIG_H
3 2
4#include "config_common.h" 3#include "config_common.h"
5 4
@@ -46,5 +45,3 @@
46#define RGBLIGHT_SAT_STEP 8 45#define RGBLIGHT_SAT_STEP 8
47#define RGBLIGHT_VAL_STEP 8 46#define RGBLIGHT_VAL_STEP 8
48#endif 47#endif
49
50#endif
diff --git a/keyboards/kbdfans/kbd75/kbd75.h b/keyboards/kbdfans/kbd75/kbd75.h
index ad8706ba9..e41224287 100644
--- a/keyboards/kbdfans/kbd75/kbd75.h
+++ b/keyboards/kbdfans/kbd75/kbd75.h
@@ -2,12 +2,8 @@
2 2
3#include "quantum.h" 3#include "quantum.h"
4 4
5#ifdef KEYBOARD_kbdfans_kbd75_rev1 5#if defined(KEYBOARD_kbdfans_kbd75_rev1)
6 #include "rev1.h" 6 #include "rev1.h"
7#endif 7#elif defined(KEYBOARD_kbdfans_kbd75_rev2)
8
9#ifdef KEYBOARD_kbdfans_kbd75_rev2
10 #include "../rev1/rev1.h"
11 #include "rev2.h" 8 #include "rev2.h"
12#endif 9#endif
13
diff --git a/keyboards/kbdfans/kbd75/rev1/info.json b/keyboards/kbdfans/kbd75/rev1/info.json
index 4f963c2d8..7f9e04fdf 100644
--- a/keyboards/kbdfans/kbd75/rev1/info.json
+++ b/keyboards/kbdfans/kbd75/rev1/info.json
@@ -28,6 +28,96 @@
28 "LAYOUT_iso": { 28 "LAYOUT_iso": {
29 "key_count": 84, 29 "key_count": 84,
30 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Delete", "x":15, "y":0}, {"label":"\u00ac", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"\"", "x":2, "y":1}, {"label":"\u00a3", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"label":"Home", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"Enter", "x":13.75, "y":2, "w":1.25, "h":2}, {"label":"Page Up", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"@", "x":11.75, "y":3}, {"label":"~", "x":12.75, "y":3}, {"label":"Page Down", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":1.25}, {"label":"|", "x":1.25, "y":4}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"End", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":6.25}, {"label":"AltGr", "x":10, "y":5, "w":1.5}, {"label":"Ctrl", "x":11.5, "y":5, "w":1.5}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}] 30 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Delete", "x":15, "y":0}, {"label":"\u00ac", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"\"", "x":2, "y":1}, {"label":"\u00a3", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"label":"_", "x":11, "y":1}, {"label":"+", "x":12, "y":1}, {"label":"Backspace", "x":13, "y":1, "w":2}, {"label":"Home", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"{", "x":11.5, "y":2}, {"label":"}", "x":12.5, "y":2}, {"label":"Enter", "x":13.75, "y":2, "w":1.25, "h":2}, {"label":"Page Up", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":":", "x":10.75, "y":3}, {"label":"@", "x":11.75, "y":3}, {"label":"~", "x":12.75, "y":3}, {"label":"Page Down", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":1.25}, {"label":"|", "x":1.25, "y":4}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"<", "x":9.25, "y":4}, {"label":">", "x":10.25, "y":4}, {"label":"?", "x":11.25, "y":4}, {"label":"Shift", "x":12.25, "y":4, "w":1.75}, {"label":"\u2191", "x":14, "y":4}, {"label":"End", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":6.25}, {"label":"AltGr", "x":10, "y":5, "w":1.5}, {"label":"Ctrl", "x":11.5, "y":5, "w":1.5}, {"label":"\u2190", "x":13, "y":5}, {"label":"\u2193", "x":14, "y":5}, {"label":"\u2192", "x":15, "y":5}]
31 },
32
33 "LAYOUT_75_iso": {
34 "layout": [
35 {"label":"Esc", "x":0, "y":0},
36 {"label":"F1", "x":1, "y":0},
37 {"label":"F2", "x":2, "y":0},
38 {"label":"F3", "x":3, "y":0},
39 {"label":"F4", "x":4, "y":0},
40 {"label":"F5", "x":5, "y":0},
41 {"label":"F6", "x":6, "y":0},
42 {"label":"F7", "x":7, "y":0},
43 {"label":"F8", "x":8, "y":0},
44 {"label":"F9", "x":9, "y":0},
45 {"label":"F10", "x":10, "y":0},
46 {"label":"F11", "x":11, "y":0},
47 {"label":"F12", "x":12, "y":0},
48 {"label":"PrtSc", "x":13, "y":0},
49 {"label":"Scroll Lock", "x":14, "y":0},
50 {"label":"Pause", "x":15, "y":0},
51 {"label":"`", "x":0, "y":1},
52 {"label":"1", "x":1, "y":1},
53 {"label":"2", "x":2, "y":1},
54 {"label":"3", "x":3, "y":1},
55 {"label":"4", "x":4, "y":1},
56 {"label":"5", "x":5, "y":1},
57 {"label":"6", "x":6, "y":1},
58 {"label":"7", "x":7, "y":1},
59 {"label":"8", "x":8, "y":1},
60 {"label":"9", "x":9, "y":1},
61 {"label":"0", "x":10, "y":1},
62 {"label":"-", "x":11, "y":1},
63 {"label":"=", "x":12, "y":1},
64 {"label":"Backspace", "x":13, "y":1, "w":2},
65 {"label":"Home", "x":15, "y":1},
66 {"label":"Tab", "x":0, "y":2, "w":1.5},
67 {"label":"Q", "x":1.5, "y":2},
68 {"label":"W", "x":2.5, "y":2},
69 {"label":"E", "x":3.5, "y":2},
70 {"label":"R", "x":4.5, "y":2},
71 {"label":"T", "x":5.5, "y":2},
72 {"label":"Y", "x":6.5, "y":2},
73 {"label":"U", "x":7.5, "y":2},
74 {"label":"I", "x":8.5, "y":2},
75 {"label":"O", "x":9.5, "y":2},
76 {"label":"P", "x":10.5, "y":2},
77 {"label":"[", "x":11.5, "y":2},
78 {"label":"]", "x":12.5, "y":2},
79 {"label":"PgUp", "x":15, "y":2},
80 {"label":"Caps Lock", "x":0, "y":3, "w":1.75},
81 {"label":"A", "x":1.75, "y":3},
82 {"label":"S", "x":2.75, "y":3},
83 {"label":"D", "x":3.75, "y":3},
84 {"label":"F", "x":4.75, "y":3},
85 {"label":"G", "x":5.75, "y":3},
86 {"label":"H", "x":6.75, "y":3},
87 {"label":"J", "x":7.75, "y":3},
88 {"label":"K", "x":8.75, "y":3},
89 {"label":"L", "x":9.75, "y":3},
90 {"label":";", "x":10.75, "y":3},
91 {"label":"'", "x":11.75, "y":3},
92 {"label":"ISO #", "x":12.75, "y":3},
93 {"label":"Enter", "x":13.75, "y":2, "w":1.25, "h":2},
94 {"label":"PgDn", "x":15, "y":3},
95 {"label":"Shift", "x":0, "y":4, "w":1.25},
96 {"label":"ISO \\", "x":1.25, "y":4},
97 {"label":"Z", "x":2.25, "y":4},
98 {"label":"X", "x":3.25, "y":4},
99 {"label":"C", "x":4.25, "y":4},
100 {"label":"V", "x":5.25, "y":4},
101 {"label":"B", "x":6.25, "y":4},
102 {"label":"N", "x":7.25, "y":4},
103 {"label":"M", "x":8.25, "y":4},
104 {"label":",", "x":9.25, "y":4},
105 {"label":".", "x":10.25, "y":4},
106 {"label":"/", "x":11.25, "y":4},
107 {"label":"Shift", "x":12.25, "y":4, "w":1.75},
108 {"label":"Up", "x":14, "y":4},
109 {"label":"End", "x":15, "y":4},
110 {"label":"Ctrl", "x":0, "y":5, "w":1.25},
111 {"label":"GUI", "x":1.25, "y":5, "w":1.25},
112 {"label":"Alt", "x":2.5, "y":5, "w":1.25},
113 {"label":"Space", "x":3.75, "y":5, "w":6.25},
114 {"label":"AltGr", "x":10, "y":5},
115 {"label":"Fn", "x":11, "y":5},
116 {"label":"Ctrl", "x":12, "y":5},
117 {"label":"Left", "x":13, "y":5},
118 {"label":"Down", "x":14, "y":5},
119 {"label":"Right", "x":15, "y":5}
120 ]
31 } 121 }
32 } 122 }
33} 123}
diff --git a/keyboards/kbdfans/kbd75/rev1/rev1.h b/keyboards/kbdfans/kbd75/rev1/rev1.h
index fd3e6e488..97474f16b 100644
--- a/keyboards/kbdfans/kbd75/rev1/rev1.h
+++ b/keyboards/kbdfans/kbd75/rev1/rev1.h
@@ -1,8 +1,6 @@
1#ifndef REV1_H 1#pragma once
2#define REV1_H
3 2
4#include "quantum.h" 3#include "kbd75.h"
5#include "../kbd75.h"
6 4
7/* LAYOUT 5/* LAYOUT
8 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ 6 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
@@ -20,7 +18,7 @@
20 * └────┴────┴────┴────────┴────┴──────────┴───┴───┴───┴───┴───┴───┘ 18 * └────┴────┴────┴────────┴────┴──────────┴───┴───┴───┴───┴───┴───┘
21 */ 19 */
22 20
23// LAYOUT for all possible switch positions on a KBD75 21// LAYOUT for all possible switch positions on a KBD75 rev 1
24#define LAYOUT( \ 22#define LAYOUT( \
25 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ 23 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
26 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \ 24 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \
@@ -44,7 +42,7 @@
44 * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘ 42 * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
45 */ 43 */
46 44
47 #define LAYOUT_ansi_1u( \ 45#define LAYOUT_ansi_1u( \
48 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ 46 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
49 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \ 47 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
50 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \ 48 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \
@@ -53,13 +51,15 @@
53 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \ 51 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
54) { \ 52) { \
55 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \ 53 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \
56 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \ 54 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \
57 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \ 55 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \
58 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \ 56 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
59 { K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \ 57 { K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
60 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \ 58 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \
61} 59}
62 60
61#define LAYOUT_75_ansi LAYOUT_ansi_1u
62
63#define LAYOUT_iso_1u( \ 63#define LAYOUT_iso_1u( \
64 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ 64 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
65 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \ 65 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
@@ -76,6 +76,22 @@
76 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \ 76 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \
77} 77}
78 78
79#define LAYOUT_75_iso( \
80 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
81 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
82 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K215, \
83 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K214, K313, K315, \
84 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
85 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
86) LAYOUT_iso_1u( \
87 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
88 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
89 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K313, K215, \
90 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K214, K315, \
91 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
92 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
93)
94
79 95
80/* normal bottom row ──────────────────────── ↓ ─── ↓ 96/* normal bottom row ──────────────────────── ↓ ─── ↓
81 * ┌────┬────┬────┬────────────────────────┬─────┬─────┬───┬───┬───┐ 97 * ┌────┬────┬────┬────────────────────────┬─────┬─────┬───┬───┬───┐
@@ -83,7 +99,7 @@
83 * └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘ 99 * └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
84 */ 100 */
85 101
86 #define LAYOUT_ansi( \ 102#define LAYOUT_ansi( \
87 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ 103 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
88 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \ 104 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
89 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \ 105 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \
@@ -114,5 +130,3 @@
114 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \ 130 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
115 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, KC_NO, K512, K513, K514, K515 } \ 131 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, KC_NO, K512, K513, K514, K515 } \
116} 132}
117
118#endif
diff --git a/keyboards/kbdfans/kbd75/rev1/rules.mk b/keyboards/kbdfans/kbd75/rev1/rules.mk
index 9c4082da2..421894a38 100644
--- a/keyboards/kbdfans/kbd75/rev1/rules.mk
+++ b/keyboards/kbdfans/kbd75/rev1/rules.mk
@@ -1,44 +1,8 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5BOOTLOADER = atmel-dfu
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# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42 6
43 7
44# Build Options 8# Build Options
@@ -53,4 +17,6 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
53NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 17NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
54BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 18BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
55AUDIO_ENABLE = no 19AUDIO_ENABLE = no
56RGBLIGHT_ENABLE = yes \ No newline at end of file 20RGBLIGHT_ENABLE = yes
21
22LAYOUTS = 75_ansi 75_iso
diff --git a/keyboards/kbdfans/kbd75/rev2/info.json b/keyboards/kbdfans/kbd75/rev2/info.json
index 31a5d3117..c6ff35e9d 100644
--- a/keyboards/kbdfans/kbd75/rev2/info.json
+++ b/keyboards/kbdfans/kbd75/rev2/info.json
@@ -32,6 +32,96 @@
32 32
33 "LAYOUT_numpad": { 33 "LAYOUT_numpad": {
34 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Delete", "x":15, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"@", "x":2, "y":1}, {"label":"#", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"x":11, "y":1}, {"x":12, "y":1}, {"label":"Home", "x":13, "y":1}, {"label":"_", "x":14, "y":1}, {"label":"+", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"|", "x":11.5, "y":2, "w":1.5}, {"label":"Page Up", "x":13, "y":2}, {"label":"{", "x":14, "y":2}, {"label":"}", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":"Enter", "x":10.75, "y":3, "w":2.25}, {"label":"Page Down", "x":13, "y":3}, {"label":":", "x":14, "y":3}, {"label":"\"", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":1.25}, {"x":1.25, "y":4}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"?", "x":9.25, "y":4}, {"label":"Shift", "x":10.25, "y":4, "w":1.75}, {"label":"\u2191", "x":12, "y":4}, {"label":"End", "x":13, "y":4}, {"label":"<", "x":14, "y":4}, {"label":">", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":1.25}, {"x":5, "y":5, "w":2.25}, {"x":7.25, "y":5, "w":1.75}, {"x":9, "y":5}, {"label":"Alt", "x":10, "y":5}, {"label":"\u2190", "x":11, "y":5}, {"label":"\u2193", "x":12, "y":5}, {"label":"\u2192", "x":13, "y":5}, {"label":"Fn", "x":14, "y":5}, {"label":"Ctrl", "x":15, "y":5}] 34 "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"PrtSc", "x":13, "y":0}, {"label":"Pause", "x":14, "y":0}, {"label":"Delete", "x":15, "y":0}, {"label":"~", "x":0, "y":1}, {"label":"!", "x":1, "y":1}, {"label":"@", "x":2, "y":1}, {"label":"#", "x":3, "y":1}, {"label":"$", "x":4, "y":1}, {"label":"%", "x":5, "y":1}, {"label":"^", "x":6, "y":1}, {"label":"&", "x":7, "y":1}, {"label":"*", "x":8, "y":1}, {"label":"(", "x":9, "y":1}, {"label":")", "x":10, "y":1}, {"x":11, "y":1}, {"x":12, "y":1}, {"label":"Home", "x":13, "y":1}, {"label":"_", "x":14, "y":1}, {"label":"+", "x":15, "y":1}, {"label":"Tab", "x":0, "y":2, "w":1.5}, {"label":"Q", "x":1.5, "y":2}, {"label":"W", "x":2.5, "y":2}, {"label":"E", "x":3.5, "y":2}, {"label":"R", "x":4.5, "y":2}, {"label":"T", "x":5.5, "y":2}, {"label":"Y", "x":6.5, "y":2}, {"label":"U", "x":7.5, "y":2}, {"label":"I", "x":8.5, "y":2}, {"label":"O", "x":9.5, "y":2}, {"label":"P", "x":10.5, "y":2}, {"label":"|", "x":11.5, "y":2, "w":1.5}, {"label":"Page Up", "x":13, "y":2}, {"label":"{", "x":14, "y":2}, {"label":"}", "x":15, "y":2}, {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, {"label":"A", "x":1.75, "y":3}, {"label":"S", "x":2.75, "y":3}, {"label":"D", "x":3.75, "y":3}, {"label":"F", "x":4.75, "y":3}, {"label":"G", "x":5.75, "y":3}, {"label":"H", "x":6.75, "y":3}, {"label":"J", "x":7.75, "y":3}, {"label":"K", "x":8.75, "y":3}, {"label":"L", "x":9.75, "y":3}, {"label":"Enter", "x":10.75, "y":3, "w":2.25}, {"label":"Page Down", "x":13, "y":3}, {"label":":", "x":14, "y":3}, {"label":"\"", "x":15, "y":3}, {"label":"Shift", "x":0, "y":4, "w":1.25}, {"x":1.25, "y":4}, {"label":"Z", "x":2.25, "y":4}, {"label":"X", "x":3.25, "y":4}, {"label":"C", "x":4.25, "y":4}, {"label":"V", "x":5.25, "y":4}, {"label":"B", "x":6.25, "y":4}, {"label":"N", "x":7.25, "y":4}, {"label":"M", "x":8.25, "y":4}, {"label":"?", "x":9.25, "y":4}, {"label":"Shift", "x":10.25, "y":4, "w":1.75}, {"label":"\u2191", "x":12, "y":4}, {"label":"End", "x":13, "y":4}, {"label":"<", "x":14, "y":4}, {"label":">", "x":15, "y":4}, {"label":"Ctrl", "x":0, "y":5, "w":1.25}, {"label":"Win", "x":1.25, "y":5, "w":1.25}, {"label":"Alt", "x":2.5, "y":5, "w":1.25}, {"x":3.75, "y":5, "w":1.25}, {"x":5, "y":5, "w":2.25}, {"x":7.25, "y":5, "w":1.75}, {"x":9, "y":5}, {"label":"Alt", "x":10, "y":5}, {"label":"\u2190", "x":11, "y":5}, {"label":"\u2193", "x":12, "y":5}, {"label":"\u2192", "x":13, "y":5}, {"label":"Fn", "x":14, "y":5}, {"label":"Ctrl", "x":15, "y":5}]
35 },
36
37 "LAYOUT_75_iso": {
38 "layout": [
39 {"label":"Esc", "x":0, "y":0},
40 {"label":"F1", "x":1, "y":0},
41 {"label":"F2", "x":2, "y":0},
42 {"label":"F3", "x":3, "y":0},
43 {"label":"F4", "x":4, "y":0},
44 {"label":"F5", "x":5, "y":0},
45 {"label":"F6", "x":6, "y":0},
46 {"label":"F7", "x":7, "y":0},
47 {"label":"F8", "x":8, "y":0},
48 {"label":"F9", "x":9, "y":0},
49 {"label":"F10", "x":10, "y":0},
50 {"label":"F11", "x":11, "y":0},
51 {"label":"F12", "x":12, "y":0},
52 {"label":"PrtSc", "x":13, "y":0},
53 {"label":"Scroll Lock", "x":14, "y":0},
54 {"label":"Pause", "x":15, "y":0},
55 {"label":"`", "x":0, "y":1},
56 {"label":"1", "x":1, "y":1},
57 {"label":"2", "x":2, "y":1},
58 {"label":"3", "x":3, "y":1},
59 {"label":"4", "x":4, "y":1},
60 {"label":"5", "x":5, "y":1},
61 {"label":"6", "x":6, "y":1},
62 {"label":"7", "x":7, "y":1},
63 {"label":"8", "x":8, "y":1},
64 {"label":"9", "x":9, "y":1},
65 {"label":"0", "x":10, "y":1},
66 {"label":"-", "x":11, "y":1},
67 {"label":"=", "x":12, "y":1},
68 {"label":"Backspace", "x":13, "y":1, "w":2},
69 {"label":"Home", "x":15, "y":1},
70 {"label":"Tab", "x":0, "y":2, "w":1.5},
71 {"label":"Q", "x":1.5, "y":2},
72 {"label":"W", "x":2.5, "y":2},
73 {"label":"E", "x":3.5, "y":2},
74 {"label":"R", "x":4.5, "y":2},
75 {"label":"T", "x":5.5, "y":2},
76 {"label":"Y", "x":6.5, "y":2},
77 {"label":"U", "x":7.5, "y":2},
78 {"label":"I", "x":8.5, "y":2},
79 {"label":"O", "x":9.5, "y":2},
80 {"label":"P", "x":10.5, "y":2},
81 {"label":"[", "x":11.5, "y":2},
82 {"label":"]", "x":12.5, "y":2},
83 {"label":"PgUp", "x":15, "y":2},
84 {"label":"Caps Lock", "x":0, "y":3, "w":1.75},
85 {"label":"A", "x":1.75, "y":3},
86 {"label":"S", "x":2.75, "y":3},
87 {"label":"D", "x":3.75, "y":3},
88 {"label":"F", "x":4.75, "y":3},
89 {"label":"G", "x":5.75, "y":3},
90 {"label":"H", "x":6.75, "y":3},
91 {"label":"J", "x":7.75, "y":3},
92 {"label":"K", "x":8.75, "y":3},
93 {"label":"L", "x":9.75, "y":3},
94 {"label":";", "x":10.75, "y":3},
95 {"label":"'", "x":11.75, "y":3},
96 {"label":"ISO #", "x":12.75, "y":3},
97 {"label":"Enter", "x":13.75, "y":2, "w":1.25, "h":2},
98 {"label":"PgDn", "x":15, "y":3},
99 {"label":"Shift", "x":0, "y":4, "w":1.25},
100 {"label":"ISO \\", "x":1.25, "y":4},
101 {"label":"Z", "x":2.25, "y":4},
102 {"label":"X", "x":3.25, "y":4},
103 {"label":"C", "x":4.25, "y":4},
104 {"label":"V", "x":5.25, "y":4},
105 {"label":"B", "x":6.25, "y":4},
106 {"label":"N", "x":7.25, "y":4},
107 {"label":"M", "x":8.25, "y":4},
108 {"label":",", "x":9.25, "y":4},
109 {"label":".", "x":10.25, "y":4},
110 {"label":"/", "x":11.25, "y":4},
111 {"label":"Shift", "x":12.25, "y":4, "w":1.75},
112 {"label":"Up", "x":14, "y":4},
113 {"label":"End", "x":15, "y":4},
114 {"label":"Ctrl", "x":0, "y":5, "w":1.25},
115 {"label":"GUI", "x":1.25, "y":5, "w":1.25},
116 {"label":"Alt", "x":2.5, "y":5, "w":1.25},
117 {"label":"Space", "x":3.75, "y":5, "w":6.25},
118 {"label":"AltGr", "x":10, "y":5},
119 {"label":"Fn", "x":11, "y":5},
120 {"label":"Ctrl", "x":12, "y":5},
121 {"label":"Left", "x":13, "y":5},
122 {"label":"Down", "x":14, "y":5},
123 {"label":"Right", "x":15, "y":5}
124 ]
35 } 125 }
36 } 126 }
37} 127}
diff --git a/keyboards/kbdfans/kbd75/rev2/rev2.h b/keyboards/kbdfans/kbd75/rev2/rev2.h
index f2a1fead2..73baf31d3 100644
--- a/keyboards/kbdfans/kbd75/rev2/rev2.h
+++ b/keyboards/kbdfans/kbd75/rev2/rev2.h
@@ -1,9 +1,135 @@
1#ifndef REV2_H 1#pragma once
2#define REV2_H
3 2
4#include "quantum.h" 3#include "kbd75.h"
5#include "../kbd75.h"
6 4
5/* LAYOUT
6 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
7 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
8 * ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
9 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
10 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┼───┤
11 * │1.5U │ │ │ │ │ │ │ │ │ │ │ │ │1.5U │ │
12 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
13 * │1.75U │ │ │ │ │ │ │ │ │ │ │ │2.25U │ │
14 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
15 * │2.25U │ │ │ │ │ │ │ │ │ │ │1.75U │ │ │
16 * ├────┬───┴┬──┴─┬─┴───┴──┬┴───┼───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤
17 * │1.25│1.25│1.25│2.25U │1.25│2.75U │ │ │ │ │ │ │
18 * └────┴────┴────┴────────┴────┴──────────┴───┴───┴───┴───┴───┴───┘
19 */
20
21// LAYOUT for all possible switch positions on a KBD75 rev 1
22#define LAYOUT( \
23 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
24 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, \
25 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \
26 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K315, \
27 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
28 K500, K501, K503, K504, K506, K508, K510, K511, K512, K513, K514, K515 \
29) { \
30 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \
31 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115 }, \
32 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \
33 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
34 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
35 { K500, K501, KC_NO, K503, K504, KC_NO, K506, KC_NO, K508, KC_NO, K510, K511, K512, K513, K514, K515 } \
36}
37
38
39/* 1U bottom row ─────────────────────────── ↓ ─ ↓ ─ ↓
40 * ┌────┬────┬────┬────────────────────────┬───┬───┬───┬───┬───┬───┐
41 * │1.25│1.25│1.25│6.25U │1U │1U │1U │1U │1U │1U │
42 * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘
43 */
44
45#define LAYOUT_ansi_1u( \
46 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
47 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
48 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \
49 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K315, \
50 K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
51 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
52) { \
53 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \
54 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \
55 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \
56 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
57 { K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
58 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \
59}
60
61#define LAYOUT_75_ansi LAYOUT_ansi_1u
62
63#define LAYOUT_iso_1u( \
64 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
65 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
66 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K313, K215, \
67 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K214, K315, \
68 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
69 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
70) { \
71 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \
72 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \
73 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \
74 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
75 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
76 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \
77}
78
79#define LAYOUT_75_iso( \
80 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
81 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
82 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K215, \
83 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K214, K313, K315, \
84 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
85 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
86) LAYOUT_iso_1u( \
87 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
88 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
89 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K313, K215, \
90 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K214, K315, \
91 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
92 K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \
93)
94
95
96/* normal bottom row ──────────────────────── ↓ ─── ↓
97 * ┌────┬────┬────┬────────────────────────┬─────┬─────┬───┬───┬───┐
98 * │1.25│1.25│1.25│6.25U │1.5U │1.5U │1U │1U │1U │
99 * └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
100 */
101
102#define LAYOUT_ansi( \
103 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
104 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
105 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \
106 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K315, \
107 K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
108 K500, K501, K503, K506, K510, K512, K513, K514, K515 \
109) { \
110 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \
111 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \
112 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \
113 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
114 { K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
115 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, KC_NO, K512, K513, K514, K515 } \
116}
117
118#define LAYOUT_iso( \
119 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \
120 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \
121 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K313, K215, \
122 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K214, K315, \
123 K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \
124 K500, K501, K503, K506, K510, K512, K513, K514, K515 \
125) { \
126 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \
127 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \
128 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \
129 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \
130 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
131 { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, KC_NO, K512, K513, K514, K515 } \
132}
7 133
8// LAYOUT for all possible switch positions on a KBD75 rev 2 134// LAYOUT for all possible switch positions on a KBD75 rev 2
9#define LAYOUT_numpad( \ 135#define LAYOUT_numpad( \
@@ -21,5 +147,3 @@
21 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \ 147 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \
22 { K500, K501, KC_NO, K503, K504, KC_NO, K506, KC_NO, K508, K509, K510, K511, K512, K513, K514, K515 } \ 148 { K500, K501, KC_NO, K503, K504, KC_NO, K506, KC_NO, K508, K509, K510, K511, K512, K513, K514, K515 } \
23} 149}
24
25#endif
diff --git a/keyboards/kbdfans/kbd75/rev2/rules.mk b/keyboards/kbdfans/kbd75/rev2/rules.mk
index 9c4082da2..421894a38 100644
--- a/keyboards/kbdfans/kbd75/rev2/rules.mk
+++ b/keyboards/kbdfans/kbd75/rev2/rules.mk
@@ -1,44 +1,8 @@
1# MCU name 1# MCU name
2MCU = atmega32u4 2MCU = atmega32u4
3 3
4# Processor frequency. 4# Bootloader selection
5# This will define a symbol, F_CPU, in all source code files equal to the 5BOOTLOADER = atmel-dfu
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# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42 6
43 7
44# Build Options 8# Build Options
@@ -53,4 +17,6 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
53NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 17NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
54BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality 18BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
55AUDIO_ENABLE = no 19AUDIO_ENABLE = no
56RGBLIGHT_ENABLE = yes \ No newline at end of file 20RGBLIGHT_ENABLE = yes
21
22LAYOUTS = 75_ansi 75_iso