aboutsummaryrefslogtreecommitdiff
path: root/keyboards/clueboard/2x1800/2018/keymaps/macroboard/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/clueboard/2x1800/2018/keymaps/macroboard/keymap.c')
-rw-r--r--keyboards/clueboard/2x1800/2018/keymaps/macroboard/keymap.c123
1 files changed, 123 insertions, 0 deletions
diff --git a/keyboards/clueboard/2x1800/2018/keymaps/macroboard/keymap.c b/keyboards/clueboard/2x1800/2018/keymaps/macroboard/keymap.c
new file mode 100644
index 000000000..8a1e4ac5c
--- /dev/null
+++ b/keyboards/clueboard/2x1800/2018/keymaps/macroboard/keymap.c
@@ -0,0 +1,123 @@
1/* Copyright 2017 Zach White <[email protected]>
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
18enum custom_keycodes {
19 MACRO01 = SAFE_RANGE,
20 MACRO02,
21 MACRO03,
22 MACRO04,
23 MACRO05,
24 MACRO06,
25 MACRO07,
26 MACRO08,
27 MACRO09,
28 MACRO10,
29 MACRO11,
30 MACRO12,
31 MACRO13,
32 MACRO14,
33 MACRO15,
34 MACRO16,
35 MACRO17,
36 MACRO18,
37 MACRO19,
38 MACRO20,
39 MACRO21,
40};
41
42const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
43[0] = LAYOUT(
44 MACRO01, MACRO02, MACRO03, MACRO04, KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS, KC_INS,
45
46 MACRO05, MACRO06, MACRO07, MACRO08, KC_GRV, 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, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
47 MACRO09, MACRO10, MACRO11, MACRO12, 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_P7, KC_P8, KC_P9, KC_PSLS,
48 MACRO13, MACRO14, MACRO15, 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_P4, KC_P5, KC_P6,
49 MACRO16, MACRO17, MACRO18, MACRO19, KC_UP, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
50 MACRO20, MACRO21, KC_LEFT, KC_DOWN, KC_RGHT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
51)
52};
53
54bool process_record_user(uint16_t keycode, keyrecord_t *record) {
55 if (record->event.pressed) {
56 switch(keycode) {
57 case MACRO01:
58 SEND_STRING("This is macro 01");
59 return false;
60 case MACRO02:
61 SEND_STRING("This is macro 02");
62 return false;
63 case MACRO03:
64 SEND_STRING("This is macro 03");
65 return false;
66 case MACRO04:
67 SEND_STRING("This is macro 04");
68 return false;
69 case MACRO05:
70 SEND_STRING("This is macro 05");
71 return false;
72 case MACRO06:
73 SEND_STRING("This is macro 06");
74 return false;
75 case MACRO07:
76 SEND_STRING("This is macro 07");
77 return false;
78 case MACRO08:
79 SEND_STRING("This is macro 08");
80 return false;
81 case MACRO09:
82 SEND_STRING("This is macro 09");
83 return false;
84 case MACRO10:
85 SEND_STRING("This is macro 10");
86 return false;
87 case MACRO11:
88 SEND_STRING("This is macro 11");
89 return false;
90 case MACRO12:
91 SEND_STRING("This is macro 12");
92 return false;
93 case MACRO13:
94 SEND_STRING("This is macro 13");
95 return false;
96 case MACRO14:
97 SEND_STRING("This is macro 14");
98 return false;
99 case MACRO15:
100 SEND_STRING("This is macro 15");
101 return false;
102 case MACRO16:
103 SEND_STRING("This is macro 16");
104 return false;
105 case MACRO17:
106 SEND_STRING("This is macro 17");
107 return false;
108 case MACRO18:
109 SEND_STRING("This is macro 18");
110 return false;
111 case MACRO19:
112 SEND_STRING("This is macro 19");
113 return false;
114 case MACRO20:
115 SEND_STRING("This is macro 20");
116 return false;
117 case MACRO21:
118 SEND_STRING("This is macro 21");
119 return false;
120 }
121 }
122 return true;
123};