diff options
| -rw-r--r-- | keyboards/candybar/candybar.h | 28 | ||||
| -rw-r--r-- | keyboards/candybar/info.json | 222 | ||||
| -rw-r--r-- | keyboards/candybar/keymaps/lefty/keymap.c | 38 |
3 files changed, 77 insertions, 211 deletions
diff --git a/keyboards/candybar/candybar.h b/keyboards/candybar/candybar.h index 262edf3bb..b7a9ef456 100644 --- a/keyboards/candybar/candybar.h +++ b/keyboards/candybar/candybar.h | |||
| @@ -19,12 +19,26 @@ | |||
| 19 | 19 | ||
| 20 | #define LAYOUT( \ | 20 | #define LAYOUT( \ |
| 21 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f, k0g, \ | 21 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f, k0g, \ |
| 22 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1c, k1d, k1e, k1f, k1g, \ | 22 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1c, k1d, k1e, k1f, k1g, \ |
| 23 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, k2f, k2g, \ | 23 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, k2f, k2g, \ |
| 24 | k30, k31, k32, k35, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f, k3g \ | 24 | k30, k31, k32, k35, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f, k3g \ |
| 25 | ) { \ | 25 | ) { \ |
| 26 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f, k0g }, \ | 26 | { k00, k01 , k02, k03 , k04 , k05, k06 , k07, k08, k09, k0a, k0b , k0c, k0d, k0e, k0f, k0g } , \ |
| 27 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, KC_NO, k1c, k1d, k1e, k1f, k1g }, \ | 27 | { k10, k11 , k12, k13 , k14 , k15, k16 , k17, k18, k19, k1a, KC_NO, k1c, k1d, k1e, k1f, k1g } , \ |
| 28 | { k20, KC_NO, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, k2f, k2g }, \ | 28 | { k20, KC_NO, k22, k23 , k24 , k25, k26 , k27, k28, k29, k2a, k2b , k2c, k2d, k2e, k2f, k2g } , \ |
| 29 | { k30, k31, k32, KC_NO, KC_NO, k35, KC_NO, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f, k3g } \ | 29 | { k30, k31 , k32, KC_NO, KC_NO, k35, KC_NO, k37, k38, k39, k3a, k3b , k3c, k3d, k3e, k3f, k3g } \ |
| 30 | } | 30 | } |
| 31 | |||
| 32 | #define LAYOUT_lefty( \ | ||
| 33 | k0d, k0e, k0f, k0g, k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \ | ||
| 34 | k1d, k1e, k1f, k1g, k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1c, \ | ||
| 35 | k2d, k2e, k2f, k2g, k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \ | ||
| 36 | k3d, k3e, k3f, k3g, k30, k31, k32, k35, k37, k38, k39, k3a, k3b, k3c \ | ||
| 37 | ) { \ | ||
| 38 | { k00, k01 , k02, k03 , k04 , k05, k06 , k07, k08, k09, k0a, k0b , k0c, k0d, k0e, k0f, k0g } , \ | ||
| 39 | { k10, k11 , k12, k13 , k14 , k15, k16 , k17, k18, k19, k1a, KC_NO, k1c, k1d, k1e, k1f, k1g } , \ | ||
| 40 | { k20, KC_NO, k22, k23 , k24 , k25, k26 , k27, k28, k29, k2a, k2b , k2c, k2d, k2e, k2f, k2g } , \ | ||
| 41 | { k30, k31 , k32, KC_NO, KC_NO, k35, KC_NO, k37, k38, k39, k3a, k3b , k3c, k3d, k3e, k3f, k3g } \ | ||
| 42 | } | ||
| 43 | |||
| 44 | #define LAYOUT_righty LAYOUT | ||
diff --git a/keyboards/candybar/info.json b/keyboards/candybar/info.json index 442324ece..9cf4216aa 100644 --- a/keyboards/candybar/info.json +++ b/keyboards/candybar/info.json | |||
| @@ -1,210 +1,24 @@ | |||
| 1 | { | 1 | { |
| 2 | "keyboard_name": "TKC Candybar", | 2 | "keyboard_name": "TKC Candybar", |
| 3 | "url": "", | 3 | "url": "", |
| 4 | "maintainer": "terrymathews", | 4 | "maintainer": "terrymathews", |
| 5 | "width": 17, | 5 | "width": 17, |
| 6 | "height": 4, | 6 | "height": 4, |
| 7 | "layouts": { | 7 | "layouts": { |
| 8 | "LAYOUT": { | 8 | "LAYOUT": { |
| 9 | "layout": [ | 9 | "layout": [ |
| 10 | {"label":"Esc", | 10 | {"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"Del", "x":11, "y":0}, {"label":"BkSp", "x":12, "y":0}, {"label":"7", "x":13, "y":0}, {"label":"8", "x":14, "y":0}, {"label":"9", "x":15, "y":0}, {"label":"*", "x":16, "y":0}, |
| 11 | "x":0, | 11 | {"label":"Tab", "x":0, "y":1, "w":1.25}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":6.25, "y":1}, {"label":"J", "x":7.25, "y":1}, {"label":"K", "x":8.25, "y":1}, {"label":"L", "x":9.25, "y":1}, {"label":":", "x":10.25, "y":1}, {"label":"Enter", "x":11.25, "y":1, "w":1.75}, {"label":"4", "x":13, "y":1}, {"label":"5", "x":14, "y":1}, {"label":"6", "x":15, "y":1}, {"label":"-", "x":16, "y":1}, |
| 12 | "y":0}, | 12 | {"label":"Shift", "x":0, "y":2, "w":1.75}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"label":"N", "x":6.75, "y":2}, {"label":"M", "x":7.75, "y":2}, {"label":"<", "x":8.75, "y":2}, {"label":">", "x":9.75, "y":2}, {"label":"Shift", "x":10.75, "y":2, "w":1.25}, {"label":"↑", "x":12, "y":2}, {"label":"1", "x":13, "y":2}, {"label":"2", "x":14, "y":2}, {"label":"3", "x":15, "y":2}, {"label":"+", "x":16, "y":2}, |
| 13 | {"label":"Q", | 13 | {"label":"Ctrl", "x":0, "y":3, "w":1.25}, {"label":"GUI", "x":1.25, "y":3, "w":1.25}, {"label":"Alt", "x":2.5, "y":3, "w":1.25}, {"x":3.75, "y":3, "w":1.75}, {"x":5.5, "y":3, "w":1}, {"label":"Backspace", "x":6.5, "y":3, "w":2.25}, {"label":"Menu", "x":8.75, "y":3, "w":1.25}, {"label":"Fn", "x":10, "y":3}, {"label":"←", "x":11, "y":3}, {"label":"↓", "x":12, "y":3}, {"label":"→", "x":13, "y":3}, {"label":"0", "x":14, "y":3}, {"label":".", "x":15, "y":3}, {"label":"Enter", "x":16, "y":3}] |
| 14 | "x":1, | 14 | }, |
| 15 | "y":0}, | 15 | "LAYOUT_lefty": { |
| 16 | {"label":"W", | 16 | "layout": [ |
| 17 | "x":2, | 17 | {"label":"7", "x":0, "y":0}, {"label":"8", "x":1, "y":0}, {"label":"9", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"Q", "x":5, "y":0}, {"label":"W", "x":6, "y":0}, {"label":"E", "x":7, "y":0}, {"label":"R", "x":8, "y":0}, {"label":"T", "x":9, "y":0}, {"label":"Y", "x":10, "y":0}, {"label":"U", "x":11, "y":0}, {"label":"I", "x":12, "y":0}, {"label":"O", "x":13, "y":0}, {"label":"P", "x":14, "y":0}, {"label":"{", "x":15, "y":0}, {"label":"}", "x":16, "y":0}, |
| 18 | "y":0}, | 18 | {"label":"4", "x":0, "y":1}, {"label":"5", "x":1, "y":1}, {"label":"6", "x":2, "y":1}, {"label":"+", "x":3, "y":1}, {"label":"Tab", "x":4, "y":1, "w":1.25}, {"label":"A", "x":5.25, "y":1}, {"label":"S", "x":6.25, "y":1}, {"label":"D", "x":7.25, "y":1}, {"label":"F", "x":8.25, "y":1}, {"label":"G", "x":9.25, "y":1}, {"label":"H", "x":10.25, "y":1}, {"label":"J", "x":11.25, "y":1}, {"label":"K", "x":12.25, "y":1}, {"label":"L", "x":13.25, "y":1}, {"label":":", "x":14.25, "y":1}, {"label":"Enter", "x":15.25, "y":1, "w":1.75}, |
| 19 | {"label":"E", | 19 | {"label":"1", "x":0, "y":2}, {"label":"2", "x":1, "y":2}, {"label":"3", "x":2, "y":2}, {"x":3, "y":2}, {"label":"Shift", "x":4, "y":2, "w":1.75}, {"label":"Z", "x":5.75, "y":2}, {"label":"X", "x":6.75, "y":2}, {"label":"C", "x":7.75, "y":2}, {"label":"V", "x":8.75, "y":2}, {"label":"B", "x":9.75, "y":2}, {"label":"N", "x":10.75, "y":2}, {"label":"M", "x":11.75, "y":2}, {"label":"<", "x":12.75, "y":2}, {"label":">", "x":13.75, "y":2}, {"label":"\u2191", "x":14.75, "y":2}, {"label":"Shift", "x":15.75, "y":2, "w":1.25}, |
| 20 | "x":3, | 20 | {"label":"Fn", "x":0, "y":3}, {"label":"0", "x":1, "y":3}, {"label":".", "x":2, "y":3}, {"label":"Enter", "x":3, "y":3}, {"label":"Ctrl", "x":4, "y":3, "w":1.25}, {"label":"Win", "x":5.25, "y":3, "w":1.25}, {"label":"Alt", "x":6.5, "y":3, "w":1.25}, {"x":7.75, "y":3, "w":1.75}, {"x":9.5, "y":3}, {"x":10.5, "y":3, "w":2.25}, {"label":"Win", "x":12.75, "y":3, "w":1.25}, {"label":"\u2190", "x":14, "y":3}, {"label":"\u2193", "x":15, "y":3}, {"label":"\u2192", "x":16, "y":3} |
| 21 | "y":0}, | 21 | ] |
| 22 | {"label":"R", | ||
| 23 | "x":4, | ||
| 24 | "y":0}, | ||
| 25 | {"label":"T", | ||
| 26 | "x":5, | ||
| 27 | "y":0}, | ||
| 28 | {"label":"Y", | ||
| 29 | "x":6, | ||
| 30 | "y":0}, | ||
| 31 | {"label":"U", | ||
| 32 | "x":7, | ||
| 33 | "y":0}, | ||
| 34 | {"label":"I", | ||
| 35 | "x":8, | ||
| 36 | "y":0}, | ||
| 37 | {"label":"O", | ||
| 38 | "x":9, | ||
| 39 | "y":0}, | ||
| 40 | {"label":"P", | ||
| 41 | "x":10, | ||
| 42 | "y":0}, | ||
| 43 | {"label":"Del", | ||
| 44 | "x":11, | ||
| 45 | "y":0}, | ||
| 46 | {"label":"BkSp", | ||
| 47 | "x":12, | ||
| 48 | "y":0}, | ||
| 49 | {"label":"7", | ||
| 50 | "x":13, | ||
| 51 | "y":0}, | ||
| 52 | {"label":"8", | ||
| 53 | "x":14, | ||
| 54 | "y":0}, | ||
| 55 | {"label":"9", | ||
| 56 | "x":15, | ||
| 57 | "y":0}, | ||
| 58 | {"label":"*", | ||
| 59 | "x":16, | ||
| 60 | "y":0}, | ||
| 61 | {"label":"Tab", | ||
| 62 | "x":0, | ||
| 63 | "y":1, | ||
| 64 | "w":1.25}, | ||
| 65 | {"label":"A", | ||
| 66 | "x":1.25, | ||
| 67 | "y":1}, | ||
| 68 | {"label":"S", | ||
| 69 | "x":2.25, | ||
| 70 | "y":1}, | ||
| 71 | {"label":"D", | ||
| 72 | "x":3.25, | ||
| 73 | "y":1}, | ||
| 74 | {"label":"F", | ||
| 75 | "x":4.25, | ||
| 76 | "y":1}, | ||
| 77 | {"label":"G", | ||
| 78 | "x":5.25, | ||
| 79 | "y":1}, | ||
| 80 | {"label":"H", | ||
| 81 | "x":6.25, | ||
| 82 | "y":1}, | ||
| 83 | {"label":"J", | ||
| 84 | "x":7.25, | ||
| 85 | "y":1}, | ||
| 86 | {"label":"K", | ||
| 87 | "x":8.25, | ||
| 88 | "y":1}, | ||
| 89 | {"label":"L", | ||
| 90 | "x":9.25, | ||
| 91 | "y":1}, | ||
| 92 | {"label":":", | ||
| 93 | "x":10.25, | ||
| 94 | "y":1}, | ||
| 95 | {"label":"Enter", | ||
| 96 | "x":11.25, | ||
| 97 | "y":1, | ||
| 98 | "w":1.75}, | ||
| 99 | {"label":"4", | ||
| 100 | "x":13, | ||
| 101 | "y":1}, | ||
| 102 | {"label":"5", | ||
| 103 | "x":14, | ||
| 104 | "y":1}, | ||
| 105 | {"label":"6", | ||
| 106 | "x":15, | ||
| 107 | "y":1}, | ||
| 108 | {"label":"-", | ||
| 109 | "x":16, | ||
| 110 | "y":1}, | ||
| 111 | {"label":"Shift", | ||
| 112 | "x":0, | ||
| 113 | "y":2, | ||
| 114 | "w":1.75}, | ||
| 115 | {"label":"Z", | ||
| 116 | "x":1.75, | ||
| 117 | "y":2}, | ||
| 118 | {"label":"X", | ||
| 119 | "x":2.75, | ||
| 120 | "y":2}, | ||
| 121 | {"label":"C", | ||
| 122 | "x":3.75, | ||
| 123 | "y":2}, | ||
| 124 | {"label":"V", | ||
| 125 | "x":4.75, | ||
| 126 | "y":2}, | ||
| 127 | {"label":"B", | ||
| 128 | "x":5.75, | ||
| 129 | "y":2}, | ||
| 130 | {"label":"N", | ||
| 131 | "x":6.75, | ||
| 132 | "y":2}, | ||
| 133 | {"label":"M", | ||
| 134 | "x":7.75, | ||
| 135 | "y":2}, | ||
| 136 | {"label":"<", | ||
| 137 | "x":8.75, | ||
| 138 | "y":2}, | ||
| 139 | {"label":">", | ||
| 140 | "x":9.75, | ||
| 141 | "y":2}, | ||
| 142 | {"label":"Shift", | ||
| 143 | "x":10.75, | ||
| 144 | "y":2, | ||
| 145 | "w":1.25}, | ||
| 146 | {"label":"↑", | ||
| 147 | "x":12, | ||
| 148 | "y":2}, | ||
| 149 | {"label":"1", | ||
| 150 | "x":13, | ||
| 151 | "y":2}, | ||
| 152 | {"label":"2", | ||
| 153 | "x":14, | ||
| 154 | "y":2}, | ||
| 155 | {"label":"3", | ||
| 156 | "x":15, | ||
| 157 | "y":2}, | ||
| 158 | {"label":"+", | ||
| 159 | "x":16, | ||
| 160 | "y":2}, | ||
| 161 | {"label":"Ctrl", | ||
| 162 | "x":0, | ||
| 163 | "y":3, | ||
| 164 | "w":1.25}, | ||
| 165 | {"label":"GUI", | ||
| 166 | "x":1.25, | ||
| 167 | "y":3, | ||
| 168 | "w":1.25}, | ||
| 169 | {"label":"Alt", | ||
| 170 | "x":2.5, | ||
| 171 | "y":3, | ||
| 172 | "w":1.25}, | ||
| 173 | {"x":3.75, | ||
| 174 | "y":3, | ||
| 175 | "w":1.75}, | ||
| 176 | {"x":5.5, | ||
| 177 | "y":3, | ||
| 178 | "w":1}, | ||
| 179 | {"label":"Backspace", | ||
| 180 | "x":6.5, | ||
| 181 | "y":3, | ||
| 182 | "w":2.25}, | ||
| 183 | {"label":"Menu", | ||
| 184 | "x":8.75, | ||
| 185 | "y":3, | ||
| 186 | "w":1.25}, | ||
| 187 | {"label":"Fn", | ||
| 188 | "x":10, | ||
| 189 | "y":3}, | ||
| 190 | {"label":"←", | ||
| 191 | "x":11, | ||
| 192 | "y":3}, | ||
| 193 | {"label":"↓", | ||
| 194 | "x":12, | ||
| 195 | "y":3}, | ||
| 196 | {"label":"→", | ||
| 197 | "x":13, | ||
| 198 | "y":3}, | ||
| 199 | {"label":"0", | ||
| 200 | "x":14, | ||
| 201 | "y":3}, | ||
| 202 | {"label":".", | ||
| 203 | "x":15, | ||
| 204 | "y":3}, | ||
| 205 | {"label":"Enter", | ||
| 206 | "x":16, | ||
| 207 | "y":3}] | ||
| 208 | } | 22 | } |
| 209 | } | 23 | } |
| 210 | } \ No newline at end of file | 24 | } |
diff --git a/keyboards/candybar/keymaps/lefty/keymap.c b/keyboards/candybar/keymaps/lefty/keymap.c new file mode 100644 index 000000000..34cb55be3 --- /dev/null +++ b/keyboards/candybar/keymaps/lefty/keymap.c | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* Copyright 2018 Jack Humbert | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | #define _BL 0 | ||
| 20 | #define _FL 1 | ||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | /* Keymap _BL: Base Layer (Default Layer) | ||
| 24 | */ | ||
| 25 | [_BL] = LAYOUT_lefty( | ||
| 26 | KC_P7 , KC_P8, KC_P9 , KC_PAST, KC_ESC , KC_Q , KC_W , KC_E, KC_R , KC_T , KC_Y, KC_U , KC_I , KC_O , KC_P , KC_DEL , KC_BSPC , \ | ||
| 27 | KC_P4 , KC_P5, KC_P6 , KC_PMNS, KC_TAB , KC_A , KC_S , KC_D, KC_F , KC_G , KC_H, KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , \ | ||
| 28 | KC_P1 , KC_P2, KC_P3 , KC_PPLS, KC_LSFT, KC_Z , KC_X, KC_C , KC_V , KC_B, KC_N , KC_M , KC_COMM, KC_DOT , KC_UP ,KC_RSFT , \ | ||
| 29 | MO(_FL), KC_P0, KC_PDOT, KC_PENT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC , KC_BSPC, KC_APP , KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 30 | |||
| 31 | /* Keymap _FL: Function Layer | ||
| 32 | */ | ||
| 33 | [_FL] = LAYOUT_lefty( | ||
| 34 | KC_P7 , KC_P8, KC_P9 , KC_VOLU, RESET , KC_Q , KC_W , KC_E, KC_R , KC_T , KC_Y, KC_U , KC_I , KC_LBRC, KC_RBRC, KC_INS , KC_BSPC , \ | ||
| 35 | KC_P4 , KC_P5, KC_P6 , KC_VOLD, KC_TAB , KC_A , KC_SLCK, KC_D, KC_F , KC_G , KC_H, KC_J , KC_K , KC_L , KC_QUOT, KC_BSLS , \ | ||
| 36 | KC_P1 , KC_P2, KC_P3 , KC_PEQL, KC_LSFT, KC_Z , KC_X, KC_CAPS, KC_V , KC_B, KC_NLCK, KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_PGUP , \ | ||
| 37 | KC_END, KC_P0, KC_PDOT, KC_PENT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC , KC_BSPC, KC_APP , MO(_FL), KC_HOME, KC_PGDN), | ||
| 38 | }; | ||
