diff options
Diffstat (limited to 'keyboards/macro1/macro1.h')
| -rw-r--r-- | keyboards/macro1/macro1.h | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/keyboards/macro1/macro1.h b/keyboards/macro1/macro1.h new file mode 100644 index 000000000..106625805 --- /dev/null +++ b/keyboards/macro1/macro1.h | |||
| @@ -0,0 +1,115 @@ | |||
| 1 | /* Copyright 2021 Laneware Peripherals | ||
| 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 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* KEYMAP_numpad | ||
| 22 | * ┌───┐ ┌───┬───┐ | ||
| 23 | * │K00│ │K02│K03│ | ||
| 24 | * └───┘ └───┴───┘ | ||
| 25 | * ┌───┬───┬───┬───┐ | ||
| 26 | * │K10│K11│K12│K13│ | ||
| 27 | * ├───┼───┼───┼───┤ | ||
| 28 | * │K20│K21│K22│K23│ | ||
| 29 | * ├───┼───┼───┤ │ | ||
| 30 | * │K30│K31│K32│ │ | ||
| 31 | * ├───┼───┼───┼───┤ | ||
| 32 | * │K40│K41│K42│K43│ | ||
| 33 | * ├───┴───┼───┤ │ | ||
| 34 | * │K50 │K52│ │ | ||
| 35 | * └───────┴───┴───┘ | ||
| 36 | */ | ||
| 37 | #define LAYOUT_numpad( \ | ||
| 38 | K00, K02, K03, \ | ||
| 39 | K10, K11, K12, K13, \ | ||
| 40 | K20, K21, K22, K23, \ | ||
| 41 | K30, K31, K32, \ | ||
| 42 | K40, K41, K42, K43, \ | ||
| 43 | K50, K52 \ | ||
| 44 | ) { \ | ||
| 45 | { K00, KC_NO, K02, K03 }, \ | ||
| 46 | { K10, K11, K12, K13 }, \ | ||
| 47 | { K20, K21, K22, K23 }, \ | ||
| 48 | { K30, K31, K32, KC_NO }, \ | ||
| 49 | { K40, K41, K42, K43 }, \ | ||
| 50 | { K50, KC_NO, K52, KC_NO } \ | ||
| 51 | } | ||
| 52 | |||
| 53 | /* KEYMAP_southpaw | ||
| 54 | * ┌───┐ ┌───┬───┐ | ||
| 55 | * │K00│ │K02│K03│ | ||
| 56 | * └───┘ └───┴───┘ | ||
| 57 | * ┌───┬───┬───┬───┐ | ||
| 58 | * │K10│K11│K12│K13│ | ||
| 59 | * ├───┼───┼───┼───┤ | ||
| 60 | * │K20│K21│K22│K23│ | ||
| 61 | * │ ├───┼───┼───┤ | ||
| 62 | * │ │K31│K32│K33│ | ||
| 63 | * ├───┼───┼───┼───┤ | ||
| 64 | * │K40│K41│K42│K43│ | ||
| 65 | * │ ├───┼───┴───┤ | ||
| 66 | * │ │K51│K52 │ | ||
| 67 | * └───┴───┴───────┘ | ||
| 68 | */ | ||
| 69 | #define LAYOUT_southpaw( \ | ||
| 70 | K00, K02, K03, \ | ||
| 71 | K10, K11, K12, K13, \ | ||
| 72 | K20, K21, K22, K23, \ | ||
| 73 | K31, K32, K33, \ | ||
| 74 | K40, K41, K42, K43, \ | ||
| 75 | K51, K52 \ | ||
| 76 | ) { \ | ||
| 77 | { K00, KC_NO, K02, K03 }, \ | ||
| 78 | { K10, K11, K12, K13 }, \ | ||
| 79 | { K20, K21, K22, K23 }, \ | ||
| 80 | { KC_NO, K31, K32, K33 }, \ | ||
| 81 | { K40, K41, K42, K43 }, \ | ||
| 82 | { KC_NO, K51, K52, KC_NO } \ | ||
| 83 | } | ||
| 84 | |||
| 85 | /* KEYMAP_macropad | ||
| 86 | * ┌───┐ ┌───┬───┐ | ||
| 87 | * │K00│ │K01│K02│ | ||
| 88 | * └───┘ └───┴───┘ | ||
| 89 | * ┌───┬───┬───┬───┐ | ||
| 90 | * │K10│K11│K12│K13│ | ||
| 91 | * ├───┼───┼───┼───┤ | ||
| 92 | * │K20│K21│K22│K23│ | ||
| 93 | * ├───┼───┼───┼───┤ | ||
| 94 | * │K30│K31│K32│K33│ | ||
| 95 | * ├───┼───┼───┼───┤ | ||
| 96 | * │K40│K41│K42│K43│ | ||
| 97 | * ├───┼───┼───┼───┤ | ||
| 98 | * │K50│K51│K52│K53│ | ||
| 99 | * └───┴───┴───┴───┘ | ||
| 100 | */ | ||
| 101 | #define LAYOUT_macropad( \ | ||
| 102 | K00, K02, K03, \ | ||
| 103 | K10, K11, K12, K13, \ | ||
| 104 | K20, K21, K22, K23, \ | ||
| 105 | K30, K31, K32, K33, \ | ||
| 106 | K40, K41, K42, K43, \ | ||
| 107 | K50, K51, K52, K53 \ | ||
| 108 | ) { \ | ||
| 109 | { K00, KC_NO, K02, K03 }, \ | ||
| 110 | { K10, K11, K12, K13 }, \ | ||
| 111 | { K20, K21, K22, K23 }, \ | ||
| 112 | { K30, K31, K32, K33 }, \ | ||
| 113 | { K40, K41, K42, K43 }, \ | ||
| 114 | { K50, K51, K52, K53 } \ | ||
| 115 | } | ||
