diff options
| author | yulei <yuleiz@gmail.com> | 2019-07-30 15:19:54 +0800 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-07-30 00:19:54 -0700 |
| commit | 5cf7dbedd2e68ec40b0666f10c47f9601e1ae275 (patch) | |
| tree | 28658ba696f88ac0f433a696d8890acb8d5694e7 /keyboards/smk60/smk60.h | |
| parent | f2e0d38f1714b7c5343eda842fccc1aeb0e56c7e (diff) | |
| download | qmk_firmware-5cf7dbedd2e68ec40b0666f10c47f9601e1ae275.tar.gz qmk_firmware-5cf7dbedd2e68ec40b0666f10c47f9601e1ae275.zip | |
[Keyboard] add 60% pcb for the smk 2nd switch(with mx mount) (#5928)
* add smk60 pcb
* remove useless keymap
* Update keyboards/smk60/rules.mk
add 60_iso layout
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* fixed 60_iso layout
* update header file macro
Diffstat (limited to 'keyboards/smk60/smk60.h')
| -rw-r--r-- | keyboards/smk60/smk60.h | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/keyboards/smk60/smk60.h b/keyboards/smk60/smk60.h new file mode 100644 index 000000000..2e71c9653 --- /dev/null +++ b/keyboards/smk60/smk60.h | |||
| @@ -0,0 +1,98 @@ | |||
| 1 | /** | ||
| 2 | * smk60.h | ||
| 3 | * | ||
| 4 | */ | ||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "quantum.h" | ||
| 8 | |||
| 9 | // This a shortcut to help you visually see your layout. | ||
| 10 | // The first section contains all of the arguements | ||
| 11 | // The second converts the arguments into a two-dimensional array | ||
| 12 | #define LAYOUT_60_ansi( \ | ||
| 13 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0e, \ | ||
| 14 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \ | ||
| 15 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \ | ||
| 16 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, \ | ||
| 17 | k40, k42, k43, k47, k48, k49, k4a, k4b \ | ||
| 18 | ) \ | ||
| 19 | { \ | ||
| 20 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, KC_NO, k0e}, \ | ||
| 21 | {k10, k11, k12, k13, k14, k15, k16, KC_NO, k17, k18, k19, k1a, k1b, k1c, k1e}, \ | ||
| 22 | {k20, k22, k23, k24, k25, k26, k27, KC_NO, k28, k29, k2a, k2b, k2c, KC_NO, k2e}, \ | ||
| 23 | {k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, KC_NO}, \ | ||
| 24 | {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, k48, k49, KC_NO, k4a, k4b} \ | ||
| 25 | } | ||
| 26 | |||
| 27 | #define LAYOUT_60_iso( \ | ||
| 28 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0e, \ | ||
| 29 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ | ||
| 30 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, \ | ||
| 31 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c,\ | ||
| 32 | k40, k42, k43, k47, k48, k49, k4a, k4b \ | ||
| 33 | ) \ | ||
| 34 | { \ | ||
| 35 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, KC_NO, k0e}, \ | ||
| 36 | {k10, k11, k12, k13, k14, k15, k16, KC_NO, k17, k18, k19, k1a, k1b, k1c, KC_NO}, \ | ||
| 37 | {k20, k22, k23, k24, k25, k26, k27, KC_NO, k28, k29, k2a, k2b, k2c, k2d, k2e}, \ | ||
| 38 | {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, KC_NO}, \ | ||
| 39 | {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, k48, k49, KC_NO, k4a, k4b} \ | ||
| 40 | } | ||
| 41 | |||
| 42 | #define LAYOUT_60_wkl( \ | ||
| 43 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0e, \ | ||
| 44 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \ | ||
| 45 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \ | ||
| 46 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \ | ||
| 47 | k40, k42, k43, k47, k49, k4a, k4b \ | ||
| 48 | ) \ | ||
| 49 | { \ | ||
| 50 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, KC_NO, k0e}, \ | ||
| 51 | {k10, k11, k12, k13, k14, k15, k16, KC_NO, k17, k18, k19, k1a, k1b, k1c, k1e}, \ | ||
| 52 | {k20, k22, k23, k24, k25, k26, k27, KC_NO, k28, k29, k2a, k2b, k2c, KC_NO, k2e}, \ | ||
| 53 | {k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, k3d}, \ | ||
| 54 | {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, KC_NO, k49, KC_NO, k4a, k4b} \ | ||
| 55 | } | ||
| 56 | |||
| 57 | #define LAYOUT_60_hhkb( \ | ||
| 58 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
| 59 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \ | ||
| 60 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \ | ||
| 61 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \ | ||
| 62 | k42, k43, k47, k49, k4a \ | ||
| 63 | ) \ | ||
| 64 | { \ | ||
| 65 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ | ||
| 66 | {k10, k11, k12, k13, k14, k15, k16, KC_NO, k17, k18, k19, k1a, k1b, k1c, k1e}, \ | ||
| 67 | {k20, k22, k23, k24, k25, k26, k27, KC_NO, k28, k29, k2a, k2b, k2c, KC_NO, k2e}, \ | ||
| 68 | {k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, k3d}, \ | ||
| 69 | {KC_NO, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, KC_NO, k49, KC_NO, k4a, KC_NO} \ | ||
| 70 | } | ||
| 71 | #define LAYOUT_60_wkl_split_bs( \ | ||
| 72 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
| 73 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \ | ||
| 74 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \ | ||
| 75 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \ | ||
| 76 | k40, k42, k43, k47, k49, k4a, k4b \ | ||
| 77 | ) \ | ||
| 78 | { \ | ||
| 79 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ | ||
| 80 | {k10, k11, k12, k13, k14, k15, k16, KC_NO, k17, k18, k19, k1a, k1b, k1c, k1e}, \ | ||
| 81 | {k20, k22, k23, k24, k25, k26, k27, KC_NO, k28, k29, k2a, k2b, k2c, KC_NO, k2e}, \ | ||
| 82 | {k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, k3d}, \ | ||
| 83 | {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, KC_NO, k49, KC_NO, k4a, k4b} \ | ||
| 84 | } | ||
| 85 | #define LAYOUT_60_ansi_split_bs_shift( \ | ||
| 86 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
| 87 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1e, \ | ||
| 88 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2e, \ | ||
| 89 | k30, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \ | ||
| 90 | k40, k42, k43, k47, k48, k49, k4a, k4b \ | ||
| 91 | ) \ | ||
| 92 | { \ | ||
| 93 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ | ||
| 94 | {k10, k11, k12, k13, k14, k15, k16, KC_NO, k17, k18, k19, k1a, k1b, k1c, k1e}, \ | ||
| 95 | {k20, k22, k23, k24, k25, k26, k27, KC_NO, k28, k29, k2a, k2b, k2c, KC_NO, k2e}, \ | ||
| 96 | {k30, KC_NO, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3c, k3d}, \ | ||
| 97 | {k40, k42, k43, KC_NO, KC_NO, KC_NO, k47, KC_NO, KC_NO, KC_NO, k48, k49, KC_NO, k4a, k4b} \ | ||
| 98 | } | ||
