diff options
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/info.json | 380 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c | 162 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c | 74 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/verd.c | 84 |
4 files changed, 350 insertions, 350 deletions
diff --git a/keyboards/redscarf_iiplus/verd/info.json b/keyboards/redscarf_iiplus/verd/info.json index e0ea3f134..65152a341 100644 --- a/keyboards/redscarf_iiplus/verd/info.json +++ b/keyboards/redscarf_iiplus/verd/info.json | |||
| @@ -1,190 +1,190 @@ | |||
| 1 | { | 1 | { |
| 2 | "keyboard_name": "Red Scarf II+ Ver D", | 2 | "keyboard_name": "Red Scarf II+ Ver D", |
| 3 | "url": "", | 3 | "url": "", |
| 4 | "maintainer": "qmk", | 4 | "maintainer": "qmk", |
| 5 | "width": 19, | 5 | "width": 19, |
| 6 | "height": 5, | 6 | "height": 5, |
| 7 | "layouts": { | 7 | "layouts": { |
| 8 | "LAYOUT_60_ansi_numpad_split0": { | 8 | "LAYOUT_60_ansi_numpad_split0": { |
| 9 | "key_count": 79, | 9 | "key_count": 79, |
| 10 | "layout": [ | 10 | "layout": [ |
| 11 | 11 | ||
| 12 | {"label":"~", "x":0, "y":0}, | 12 | {"label":"~", "x":0, "y":0}, |
| 13 | {"label":"!", "x":1, "y":0}, | 13 | {"label":"!", "x":1, "y":0}, |
| 14 | {"label":"@", "x":2, "y":0}, | 14 | {"label":"@", "x":2, "y":0}, |
| 15 | {"label":"#", "x":3, "y":0}, | 15 | {"label":"#", "x":3, "y":0}, |
| 16 | {"label":"$", "x":4, "y":0}, | 16 | {"label":"$", "x":4, "y":0}, |
| 17 | {"label":"%", "x":5, "y":0}, | 17 | {"label":"%", "x":5, "y":0}, |
| 18 | {"label":"^", "x":6, "y":0}, | 18 | {"label":"^", "x":6, "y":0}, |
| 19 | {"label":"&", "x":7, "y":0}, | 19 | {"label":"&", "x":7, "y":0}, |
| 20 | {"label":"*", "x":8, "y":0}, | 20 | {"label":"*", "x":8, "y":0}, |
| 21 | {"label":"(", "x":9, "y":0}, | 21 | {"label":"(", "x":9, "y":0}, |
| 22 | {"label":")", "x":10, "y":0}, | 22 | {"label":")", "x":10, "y":0}, |
| 23 | {"label":"_", "x":11, "y":0}, | 23 | {"label":"_", "x":11, "y":0}, |
| 24 | {"label":"+", "x":12, "y":0}, | 24 | {"label":"+", "x":12, "y":0}, |
| 25 | {"label":"Backspace", "x":13, "y":0, "w":2}, | 25 | {"label":"Backspace", "x":13, "y":0, "w":2}, |
| 26 | {"label":"Num Lock", "x":15, "y":0}, | 26 | {"label":"Num Lock", "x":15, "y":0}, |
| 27 | {"label":"/", "x":16, "y":0}, | 27 | {"label":"/", "x":16, "y":0}, |
| 28 | {"label":"*", "x":17, "y":0}, | 28 | {"label":"*", "x":17, "y":0}, |
| 29 | {"label":"-", "x":18, "y":0}, | 29 | {"label":"-", "x":18, "y":0}, |
| 30 | 30 | ||
| 31 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | 31 | {"label":"Tab", "x":0, "y":1, "w":1.5}, |
| 32 | {"label":"Q", "x":1.5, "y":1}, | 32 | {"label":"Q", "x":1.5, "y":1}, |
| 33 | {"label":"W", "x":2.5, "y":1}, | 33 | {"label":"W", "x":2.5, "y":1}, |
| 34 | {"label":"E", "x":3.5, "y":1}, | 34 | {"label":"E", "x":3.5, "y":1}, |
| 35 | {"label":"R", "x":4.5, "y":1}, | 35 | {"label":"R", "x":4.5, "y":1}, |
| 36 | {"label":"T", "x":5.5, "y":1}, | 36 | {"label":"T", "x":5.5, "y":1}, |
| 37 | {"label":"Y", "x":6.5, "y":1}, | 37 | {"label":"Y", "x":6.5, "y":1}, |
| 38 | {"label":"U", "x":7.5, "y":1}, | 38 | {"label":"U", "x":7.5, "y":1}, |
| 39 | {"label":"I", "x":8.5, "y":1}, | 39 | {"label":"I", "x":8.5, "y":1}, |
| 40 | {"label":"O", "x":9.5, "y":1}, | 40 | {"label":"O", "x":9.5, "y":1}, |
| 41 | {"label":"P", "x":10.5, "y":1}, | 41 | {"label":"P", "x":10.5, "y":1}, |
| 42 | {"label":"{", "x":11.5, "y":1}, | 42 | {"label":"{", "x":11.5, "y":1}, |
| 43 | {"label":"}", "x":12.5, "y":1}, | 43 | {"label":"}", "x":12.5, "y":1}, |
| 44 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | 44 | {"label":"|", "x":13.5, "y":1, "w":1.5}, |
| 45 | {"label":"7", "x":15, "y":1}, | 45 | {"label":"7", "x":15, "y":1}, |
| 46 | {"label":"8", "x":16, "y":1}, | 46 | {"label":"8", "x":16, "y":1}, |
| 47 | {"label":"9", "x":17, "y":1}, | 47 | {"label":"9", "x":17, "y":1}, |
| 48 | 48 | ||
| 49 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | 49 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, |
| 50 | {"label":"A", "x":1.75, "y":2}, | 50 | {"label":"A", "x":1.75, "y":2}, |
| 51 | {"label":"S", "x":2.75, "y":2}, | 51 | {"label":"S", "x":2.75, "y":2}, |
| 52 | {"label":"D", "x":3.75, "y":2}, | 52 | {"label":"D", "x":3.75, "y":2}, |
| 53 | {"label":"F", "x":4.75, "y":2}, | 53 | {"label":"F", "x":4.75, "y":2}, |
| 54 | {"label":"G", "x":5.75, "y":2}, | 54 | {"label":"G", "x":5.75, "y":2}, |
| 55 | {"label":"H", "x":6.75, "y":2}, | 55 | {"label":"H", "x":6.75, "y":2}, |
| 56 | {"label":"J", "x":7.75, "y":2}, | 56 | {"label":"J", "x":7.75, "y":2}, |
| 57 | {"label":"K", "x":8.75, "y":2}, | 57 | {"label":"K", "x":8.75, "y":2}, |
| 58 | {"label":"L", "x":9.75, "y":2}, | 58 | {"label":"L", "x":9.75, "y":2}, |
| 59 | {"label":":", "x":10.75, "y":2}, | 59 | {"label":":", "x":10.75, "y":2}, |
| 60 | {"label":"\"", "x":11.75, "y":2}, | 60 | {"label":"\"", "x":11.75, "y":2}, |
| 61 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | 61 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, |
| 62 | {"label":"4", "x":15, "y":2}, | 62 | {"label":"4", "x":15, "y":2}, |
| 63 | {"label":"5", "x":16, "y":2}, | 63 | {"label":"5", "x":16, "y":2}, |
| 64 | {"label":"6", "x":17, "y":2}, | 64 | {"label":"6", "x":17, "y":2}, |
| 65 | {"label":"+", "x":18, "y":1, "h":2}, | 65 | {"label":"+", "x":18, "y":1, "h":2}, |
| 66 | 66 | ||
| 67 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | 67 | {"label":"Shift", "x":0, "y":3, "w":2.25}, |
| 68 | {"label":"Z", "x":2.25, "y":3}, | 68 | {"label":"Z", "x":2.25, "y":3}, |
| 69 | {"label":"X", "x":3.25, "y":3}, | 69 | {"label":"X", "x":3.25, "y":3}, |
| 70 | {"label":"C", "x":4.25, "y":3}, | 70 | {"label":"C", "x":4.25, "y":3}, |
| 71 | {"label":"V", "x":5.25, "y":3}, | 71 | {"label":"V", "x":5.25, "y":3}, |
| 72 | {"label":"B", "x":6.25, "y":3}, | 72 | {"label":"B", "x":6.25, "y":3}, |
| 73 | {"label":"N", "x":7.25, "y":3}, | 73 | {"label":"N", "x":7.25, "y":3}, |
| 74 | {"label":"M", "x":8.25, "y":3}, | 74 | {"label":"M", "x":8.25, "y":3}, |
| 75 | {"label":"<", "x":9.25, "y":3}, | 75 | {"label":"<", "x":9.25, "y":3}, |
| 76 | {"label":">", "x":10.25, "y":3}, | 76 | {"label":">", "x":10.25, "y":3}, |
| 77 | {"label":"?", "x":11.25, "y":3}, | 77 | {"label":"?", "x":11.25, "y":3}, |
| 78 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, | 78 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, |
| 79 | {"label":"1", "x":15, "y":3}, | 79 | {"label":"1", "x":15, "y":3}, |
| 80 | {"label":"2", "x":16, "y":3}, | 80 | {"label":"2", "x":16, "y":3}, |
| 81 | {"label":"3", "x":17, "y":3}, | 81 | {"label":"3", "x":17, "y":3}, |
| 82 | 82 | ||
| 83 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | 83 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, |
| 84 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | 84 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, |
| 85 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | 85 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, |
| 86 | {"x":3.75, "y":4, "w":6.25}, | 86 | {"x":3.75, "y":4, "w":6.25}, |
| 87 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | 87 | {"label":"Alt", "x":10, "y":4, "w":1.25}, |
| 88 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, | 88 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, |
| 89 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, | 89 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, |
| 90 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}, | 90 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}, |
| 91 | 91 | ||
| 92 | {"label":"0", "x":15, "y":4}, | 92 | {"label":"0", "x":15, "y":4}, |
| 93 | {"label":"0", "x":16, "y":4}, | 93 | {"label":"0", "x":16, "y":4}, |
| 94 | {"label":".", "x":17, "y":4}, | 94 | {"label":".", "x":17, "y":4}, |
| 95 | {"label":"Enter", "x":18, "y":3, "h":2} | 95 | {"label":"Enter", "x":18, "y":3, "h":2} |
| 96 | ] | 96 | ] |
| 97 | 97 | ||
| 98 | }, | 98 | }, |
| 99 | "LAYOUT_60_ansi_numpad": { | 99 | "LAYOUT_60_ansi_numpad": { |
| 100 | "key_count": 78, | 100 | "key_count": 78, |
| 101 | "layout": [ | 101 | "layout": [ |
| 102 | 102 | ||
| 103 | {"label":"~", "x":0, "y":0}, | 103 | {"label":"~", "x":0, "y":0}, |
| 104 | {"label":"!", "x":1, "y":0}, | 104 | {"label":"!", "x":1, "y":0}, |
| 105 | {"label":"@", "x":2, "y":0}, | 105 | {"label":"@", "x":2, "y":0}, |
| 106 | {"label":"#", "x":3, "y":0}, | 106 | {"label":"#", "x":3, "y":0}, |
| 107 | {"label":"$", "x":4, "y":0}, | 107 | {"label":"$", "x":4, "y":0}, |
| 108 | {"label":"%", "x":5, "y":0}, | 108 | {"label":"%", "x":5, "y":0}, |
| 109 | {"label":"^", "x":6, "y":0}, | 109 | {"label":"^", "x":6, "y":0}, |
| 110 | {"label":"&", "x":7, "y":0}, | 110 | {"label":"&", "x":7, "y":0}, |
| 111 | {"label":"*", "x":8, "y":0}, | 111 | {"label":"*", "x":8, "y":0}, |
| 112 | {"label":"(", "x":9, "y":0}, | 112 | {"label":"(", "x":9, "y":0}, |
| 113 | {"label":")", "x":10, "y":0}, | 113 | {"label":")", "x":10, "y":0}, |
| 114 | {"label":"_", "x":11, "y":0}, | 114 | {"label":"_", "x":11, "y":0}, |
| 115 | {"label":"+", "x":12, "y":0}, | 115 | {"label":"+", "x":12, "y":0}, |
| 116 | {"label":"Backspace", "x":13, "y":0, "w":2}, | 116 | {"label":"Backspace", "x":13, "y":0, "w":2}, |
| 117 | {"label":"Num Lock", "x":15, "y":0}, | 117 | {"label":"Num Lock", "x":15, "y":0}, |
| 118 | {"label":"/", "x":16, "y":0}, | 118 | {"label":"/", "x":16, "y":0}, |
| 119 | {"label":"*", "x":17, "y":0}, | 119 | {"label":"*", "x":17, "y":0}, |
| 120 | {"label":"-", "x":18, "y":0}, | 120 | {"label":"-", "x":18, "y":0}, |
| 121 | 121 | ||
| 122 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | 122 | {"label":"Tab", "x":0, "y":1, "w":1.5}, |
| 123 | {"label":"Q", "x":1.5, "y":1}, | 123 | {"label":"Q", "x":1.5, "y":1}, |
| 124 | {"label":"W", "x":2.5, "y":1}, | 124 | {"label":"W", "x":2.5, "y":1}, |
| 125 | {"label":"E", "x":3.5, "y":1}, | 125 | {"label":"E", "x":3.5, "y":1}, |
| 126 | {"label":"R", "x":4.5, "y":1}, | 126 | {"label":"R", "x":4.5, "y":1}, |
| 127 | {"label":"T", "x":5.5, "y":1}, | 127 | {"label":"T", "x":5.5, "y":1}, |
| 128 | {"label":"Y", "x":6.5, "y":1}, | 128 | {"label":"Y", "x":6.5, "y":1}, |
| 129 | {"label":"U", "x":7.5, "y":1}, | 129 | {"label":"U", "x":7.5, "y":1}, |
| 130 | {"label":"I", "x":8.5, "y":1}, | 130 | {"label":"I", "x":8.5, "y":1}, |
| 131 | {"label":"O", "x":9.5, "y":1}, | 131 | {"label":"O", "x":9.5, "y":1}, |
| 132 | {"label":"P", "x":10.5, "y":1}, | 132 | {"label":"P", "x":10.5, "y":1}, |
| 133 | {"label":"{", "x":11.5, "y":1}, | 133 | {"label":"{", "x":11.5, "y":1}, |
| 134 | {"label":"}", "x":12.5, "y":1}, | 134 | {"label":"}", "x":12.5, "y":1}, |
| 135 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | 135 | {"label":"|", "x":13.5, "y":1, "w":1.5}, |
| 136 | {"label":"7", "x":15, "y":1}, | 136 | {"label":"7", "x":15, "y":1}, |
| 137 | {"label":"8", "x":16, "y":1}, | 137 | {"label":"8", "x":16, "y":1}, |
| 138 | {"label":"9", "x":17, "y":1}, | 138 | {"label":"9", "x":17, "y":1}, |
| 139 | 139 | ||
| 140 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | 140 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, |
| 141 | {"label":"A", "x":1.75, "y":2}, | 141 | {"label":"A", "x":1.75, "y":2}, |
| 142 | {"label":"S", "x":2.75, "y":2}, | 142 | {"label":"S", "x":2.75, "y":2}, |
| 143 | {"label":"D", "x":3.75, "y":2}, | 143 | {"label":"D", "x":3.75, "y":2}, |
| 144 | {"label":"F", "x":4.75, "y":2}, | 144 | {"label":"F", "x":4.75, "y":2}, |
| 145 | {"label":"G", "x":5.75, "y":2}, | 145 | {"label":"G", "x":5.75, "y":2}, |
| 146 | {"label":"H", "x":6.75, "y":2}, | 146 | {"label":"H", "x":6.75, "y":2}, |
| 147 | {"label":"J", "x":7.75, "y":2}, | 147 | {"label":"J", "x":7.75, "y":2}, |
| 148 | {"label":"K", "x":8.75, "y":2}, | 148 | {"label":"K", "x":8.75, "y":2}, |
| 149 | {"label":"L", "x":9.75, "y":2}, | 149 | {"label":"L", "x":9.75, "y":2}, |
| 150 | {"label":":", "x":10.75, "y":2}, | 150 | {"label":":", "x":10.75, "y":2}, |
| 151 | {"label":"\"", "x":11.75, "y":2}, | 151 | {"label":"\"", "x":11.75, "y":2}, |
| 152 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | 152 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, |
| 153 | {"label":"4", "x":15, "y":2}, | 153 | {"label":"4", "x":15, "y":2}, |
| 154 | {"label":"5", "x":16, "y":2}, | 154 | {"label":"5", "x":16, "y":2}, |
| 155 | {"label":"6", "x":17, "y":2}, | 155 | {"label":"6", "x":17, "y":2}, |
| 156 | {"label":"+", "x":18, "y":1, "h":2}, | 156 | {"label":"+", "x":18, "y":1, "h":2}, |
| 157 | 157 | ||
| 158 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | 158 | {"label":"Shift", "x":0, "y":3, "w":2.25}, |
| 159 | {"label":"Z", "x":2.25, "y":3}, | 159 | {"label":"Z", "x":2.25, "y":3}, |
| 160 | {"label":"X", "x":3.25, "y":3}, | 160 | {"label":"X", "x":3.25, "y":3}, |
| 161 | {"label":"C", "x":4.25, "y":3}, | 161 | {"label":"C", "x":4.25, "y":3}, |
| 162 | {"label":"V", "x":5.25, "y":3}, | 162 | {"label":"V", "x":5.25, "y":3}, |
| 163 | {"label":"B", "x":6.25, "y":3}, | 163 | {"label":"B", "x":6.25, "y":3}, |
| 164 | {"label":"N", "x":7.25, "y":3}, | 164 | {"label":"N", "x":7.25, "y":3}, |
| 165 | {"label":"M", "x":8.25, "y":3}, | 165 | {"label":"M", "x":8.25, "y":3}, |
| 166 | {"label":"<", "x":9.25, "y":3}, | 166 | {"label":"<", "x":9.25, "y":3}, |
| 167 | {"label":">", "x":10.25, "y":3}, | 167 | {"label":">", "x":10.25, "y":3}, |
| 168 | {"label":"?", "x":11.25, "y":3}, | 168 | {"label":"?", "x":11.25, "y":3}, |
| 169 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, | 169 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, |
| 170 | {"label":"1", "x":15, "y":3}, | 170 | {"label":"1", "x":15, "y":3}, |
| 171 | {"label":"2", "x":16, "y":3}, | 171 | {"label":"2", "x":16, "y":3}, |
| 172 | {"label":"3", "x":17, "y":3}, | 172 | {"label":"3", "x":17, "y":3}, |
| 173 | 173 | ||
| 174 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | 174 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, |
| 175 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | 175 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, |
| 176 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | 176 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, |
| 177 | {"x":3.75, "y":4, "w":6.25}, | 177 | {"x":3.75, "y":4, "w":6.25}, |
| 178 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | 178 | {"label":"Alt", "x":10, "y":4, "w":1.25}, |
| 179 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, | 179 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, |
| 180 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, | 180 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, |
| 181 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}, | 181 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}, |
| 182 | 182 | ||
| 183 | {"label":"0", "x":15, "y":4, "w":2}, | 183 | {"label":"0", "x":15, "y":4, "w":2}, |
| 184 | {"label":".", "x":17, "y":4}, | 184 | {"label":".", "x":17, "y":4}, |
| 185 | {"label":"Enter", "x":18, "y":3, "h":2} | 185 | {"label":"Enter", "x":18, "y":3, "h":2} |
| 186 | ] | 186 | ] |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | } | 189 | } |
| 190 | } | 190 | } |
diff --git a/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c b/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c index 9c4fee8a6..df26eec6c 100644 --- a/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c +++ b/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c | |||
| @@ -1,81 +1,81 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 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 | 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 | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
| 7 | * | 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | * | 12 | * |
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 17 | 17 | ||
| 18 | // Defines the keycodes used by our macros in process_record_user | 18 | // Defines the keycodes used by our macros in process_record_user |
| 19 | enum custom_keycodes { | 19 | enum custom_keycodes { |
| 20 | KC_P00 = SAFE_RANGE, | 20 | KC_P00 = SAFE_RANGE, |
| 21 | 21 | ||
| 22 | }; | 22 | }; |
| 23 | 23 | ||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 25 | 25 | ||
| 26 | [0] = LAYOUT_60_ansi_numpad_split0( | 26 | [0] = LAYOUT_60_ansi_numpad_split0( |
| 27 | KC_GESC, 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, TG(1), KC_PSLS, KC_PAST, KC_PMNS, | 27 | KC_GESC, 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, TG(1), KC_PSLS, KC_PAST, KC_PMNS, |
| 28 | 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_INS, KC_HOME, KC_PGUP, | 28 | 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_INS, KC_HOME, KC_PGUP, |
| 29 | 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_DEL, KC_END, KC_PGDN, KC_PPLS, | 29 | 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_DEL, KC_END, KC_PGDN, KC_PPLS, |
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, C(S(KC_TAB)), KC_UP, LCTL(KC_TAB), | 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, C(S(KC_TAB)), KC_UP, LCTL(KC_TAB), |
| 31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_PENT | 31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_PENT |
| 32 | ), | 32 | ), |
| 33 | 33 | ||
| 34 | [1] = LAYOUT_60_ansi_numpad_split0( | 34 | [1] = LAYOUT_60_ansi_numpad_split0( |
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, | 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, |
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, | 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, |
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, | 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, |
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_P00, KC_DOT, _______ | 39 | _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_P00, KC_DOT, _______ |
| 40 | ), | 40 | ), |
| 41 | 41 | ||
| 42 | [2] = LAYOUT_60_ansi_numpad_split0( | 42 | [2] = LAYOUT_60_ansi_numpad_split0( |
| 43 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | 43 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, |
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 48 | ), | 48 | ), |
| 49 | }; | 49 | }; |
| 50 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 50 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 51 | switch (keycode) { | 51 | switch (keycode) { |
| 52 | case KC_P00: | 52 | case KC_P00: |
| 53 | if (record->event.pressed) { | 53 | if (record->event.pressed) { |
| 54 | SEND_STRING("00"); | 54 | SEND_STRING("00"); |
| 55 | } | 55 | } |
| 56 | break; | 56 | break; |
| 57 | case TG(1): | 57 | case TG(1): |
| 58 | if (record->event.pressed) { | 58 | if (record->event.pressed) { |
| 59 | tap_code(KC_NUMLOCK); | 59 | tap_code(KC_NUMLOCK); |
| 60 | return true; | 60 | return true; |
| 61 | } | 61 | } |
| 62 | break; | 62 | break; |
| 63 | 63 | ||
| 64 | } | 64 | } |
| 65 | return true; | 65 | return true; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | void matrix_init_user (void) { | 68 | void matrix_init_user (void) { |
| 69 | if (!host_keyboard_led_state ().num_lock) { | 69 | if (!host_keyboard_led_state ().num_lock) { |
| 70 | tap_code(KC_NUMLOCK); | 70 | tap_code(KC_NUMLOCK); |
| 71 | } | 71 | } |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | bool led_update_user(led_t led_state) { | 74 | bool led_update_user(led_t led_state) { |
| 75 | if (led_state.num_lock) { | 75 | if (led_state.num_lock) { |
| 76 | layer_on(1); | 76 | layer_on(1); |
| 77 | } else { | 77 | } else { |
| 78 | layer_off(1); | 78 | layer_off(1); |
| 79 | } | 79 | } |
| 80 | return true; | 80 | return true; |
| 81 | } | 81 | } |
diff --git a/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c b/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c index b0bbeeea0..7bf7eb7c6 100644 --- a/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c +++ b/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c | |||
| @@ -1,37 +1,37 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 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 | 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 | 5 | * the Free Software Foundation, either version 2 of the License, or |
| 6 | * (at your option) any later version. | 6 | * (at your option) any later version. |
| 7 | * | 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, | 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
| 12 | * | 12 | * |
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 20 | 20 | ||
| 21 | [0] = LAYOUT_60_ansi_numpad( | 21 | [0] = LAYOUT_60_ansi_numpad( |
| 22 | KC_GESC, 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, | 22 | KC_GESC, 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, |
| 23 | 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, | 23 | 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, |
| 24 | 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, KC_PPLS, | 24 | 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, KC_PPLS, |
| 25 | 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_P1, KC_P2, KC_P3, | 25 | 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_P1, KC_P2, KC_P3, |
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_P0, KC_PDOT, KC_PENT | 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_P0, KC_PDOT, KC_PENT |
| 27 | ), | 27 | ), |
| 28 | 28 | ||
| 29 | [1] = LAYOUT_60_ansi_numpad( | 29 | [1] = LAYOUT_60_ansi_numpad( |
| 30 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | 30 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, |
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 35 | ), | 35 | ), |
| 36 | }; | 36 | }; |
| 37 | 37 | ||
diff --git a/keyboards/redscarf_iiplus/verd/verd.c b/keyboards/redscarf_iiplus/verd/verd.c index 6d2a8c97c..c16a5a974 100644 --- a/keyboards/redscarf_iiplus/verd/verd.c +++ b/keyboards/redscarf_iiplus/verd/verd.c | |||
| @@ -1,42 +1,42 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> |
| 2 | * This program is free software: you can redistribute it and/or modify | 2 | * This program is free software: you can redistribute it and/or modify |
| 3 | * it under the terms of the GNU General Public License as published by | 3 | * it under the terms of the GNU General Public License as published by |
| 4 | * the Free Software Foundation, either version 2 of the License, or | 4 | * the Free Software Foundation, either version 2 of the License, or |
| 5 | * (at your option) any later version. | 5 | * (at your option) any later version. |
| 6 | * | 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, | 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. | 10 | * GNU General Public License for more details. |
| 11 | * | 11 | * |
| 12 | * You should have received a copy of the GNU General Public License | 12 | * You should have received a copy of the GNU General Public License |
| 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14 | */ | 14 | */ |
| 15 | #include "verd.h" | 15 | #include "verd.h" |
| 16 | 16 | ||
| 17 | // Optional override functions below. | 17 | // Optional override functions below. |
| 18 | // You can leave any or all of these undefined. | 18 | // You can leave any or all of these undefined. |
| 19 | // These are only required if you want to perform custom actions. | 19 | // These are only required if you want to perform custom actions. |
| 20 | 20 | ||
| 21 | void matrix_init_kb(void) { | 21 | void matrix_init_kb(void) { |
| 22 | // put your keyboard start-up code here | 22 | // put your keyboard start-up code here |
| 23 | // runs once when the firmware starts up | 23 | // runs once when the firmware starts up |
| 24 | 24 | ||
| 25 | matrix_init_user(); | 25 | matrix_init_user(); |
| 26 | led_init_ports(); | 26 | led_init_ports(); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | void led_init_ports(void) { | 29 | void led_init_ports(void) { |
| 30 | setPinOutput(C7); | 30 | setPinOutput(C7); |
| 31 | writePinHigh(C7); | 31 | writePinHigh(C7); |
| 32 | setPinOutput(E6); | 32 | setPinOutput(E6); |
| 33 | writePinHigh(E6); | 33 | writePinHigh(E6); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | bool led_update_kb(led_t led_state) { | 36 | bool led_update_kb(led_t led_state) { |
| 37 | if (led_update_user(led_state)) { | 37 | if (led_update_user(led_state)) { |
| 38 | writePin(C7, !led_state.caps_lock); | 38 | writePin(C7, !led_state.caps_lock); |
| 39 | writePin(E6, !led_state.num_lock); | 39 | writePin(E6, !led_state.num_lock); |
| 40 | } | 40 | } |
| 41 | return true; | 41 | return true; |
| 42 | } | 42 | } |
