diff options
| -rw-r--r-- | keyboards/beatervan/beatervan.c | 16 | ||||
| -rw-r--r-- | keyboards/beatervan/beatervan.h | 70 | ||||
| -rw-r--r-- | keyboards/beatervan/config.h | 55 | ||||
| -rw-r--r-- | keyboards/beatervan/info.json | 204 | ||||
| -rw-r--r-- | keyboards/beatervan/keymaps/default/keymap.c | 93 | ||||
| -rw-r--r-- | keyboards/beatervan/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/beatervan/keymaps/oj/keymap.c | 93 | ||||
| -rw-r--r-- | keyboards/beatervan/keymaps/oj/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/beatervan/readme.md | 13 | ||||
| -rw-r--r-- | keyboards/beatervan/rules.mk | 23 |
10 files changed, 569 insertions, 0 deletions
diff --git a/keyboards/beatervan/beatervan.c b/keyboards/beatervan/beatervan.c new file mode 100644 index 000000000..0730af001 --- /dev/null +++ b/keyboards/beatervan/beatervan.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2020 OJtheTiny | ||
| 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 "beatervan.h" | ||
diff --git a/keyboards/beatervan/beatervan.h b/keyboards/beatervan/beatervan.h new file mode 100644 index 000000000..e64580982 --- /dev/null +++ b/keyboards/beatervan/beatervan.h | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | /* Copyright 2020 OJtheTiny | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
| 23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
| 24 | K30, K31, K32, K34, K36, K37, K38, K39 \ | ||
| 25 | ) \ | ||
| 26 | { \ | ||
| 27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
| 29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
| 30 | { K30, K31, K32, KC_NO, K34, KC_NO, K36, K37, K38, K39, KC_NO, KC_NO } \ | ||
| 31 | } | ||
| 32 | |||
| 33 | #define LAYOUT_arrow( \ | ||
| 34 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
| 35 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
| 36 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
| 37 | K30, K31, K32, K33, K37, K38, K39, K3A, K3B \ | ||
| 38 | ) \ | ||
| 39 | { \ | ||
| 40 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
| 41 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
| 42 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
| 43 | { K30, K31, K32, K33, KC_NO, KC_NO, KC_NO, K37, K38, K39, K3A, K3B } \ | ||
| 44 | } | ||
| 45 | |||
| 46 | #define LAYOUT_command( \ | ||
| 47 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
| 48 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
| 49 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
| 50 | K30, K31, K32, K34, K33, K37, K38, K39, K3B \ | ||
| 51 | ) \ | ||
| 52 | { \ | ||
| 53 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
| 54 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
| 55 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
| 56 | { K30, K31, K32, K33, K34, KC_NO, KC_NO, K37, K38, K39, KC_NO, K3B } \ | ||
| 57 | } | ||
| 58 | |||
| 59 | #define LAYOUT_arrow_command( \ | ||
| 60 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
| 61 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
| 62 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
| 63 | K30, K31, K32, K34, K33, K37, K38, K39, K3A, K3B \ | ||
| 64 | ) \ | ||
| 65 | { \ | ||
| 66 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
| 67 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
| 68 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
| 69 | { K30, K31, K32, K33, K34, KC_NO, KC_NO, K37, K38, K39, K3A, K3B } \ | ||
| 70 | } | ||
diff --git a/keyboards/beatervan/config.h b/keyboards/beatervan/config.h new file mode 100644 index 000000000..a8973ab4a --- /dev/null +++ b/keyboards/beatervan/config.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | |||
| 2 | /* Copyright 2020 OJtheTiny | ||
| 3 | * | ||
| 4 | * This program is free software: you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation, either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x6F6A // "oj" | ||
| 23 | #define PRODUCT_ID 0x6276 // "bv" | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER OJ | ||
| 26 | #define PRODUCT beatervan | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 4 | ||
| 30 | #define MATRIX_COLS 12 | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | #define MATRIX_ROW_PINS { D1, D0, D4, C6 } | ||
| 43 | #define MATRIX_COL_PINS { D7, E6, B4, B5, F4, F5, F6, F7, B1, B3, B2, B6 } | ||
| 44 | #define UNUSED_PINS | ||
| 45 | |||
| 46 | /* COL2ROW, ROW2COL*/ | ||
| 47 | #define DIODE_DIRECTION COL2ROW | ||
| 48 | |||
| 49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 50 | #define DEBOUNCE 5 | ||
| 51 | |||
| 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 53 | #define LOCKING_SUPPORT_ENABLE | ||
| 54 | /* Locking resynchronize hack */ | ||
| 55 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/beatervan/info.json b/keyboards/beatervan/info.json new file mode 100644 index 000000000..f6f387642 --- /dev/null +++ b/keyboards/beatervan/info.json | |||
| @@ -0,0 +1,204 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "beatervan", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "OJ", | ||
| 5 | "width": 12.75, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Tab", "x":0, "y":0}, | ||
| 11 | {"label":"Q", "x":1, "y":0}, | ||
| 12 | {"label":"W", "x":2, "y":0}, | ||
| 13 | {"label":"E", "x":3, "y":0}, | ||
| 14 | {"label":"R", "x":4, "y":0}, | ||
| 15 | {"label":"T", "x":5, "y":0}, | ||
| 16 | {"label":"Y", "x":6, "y":0}, | ||
| 17 | {"label":"U", "x":7, "y":0}, | ||
| 18 | {"label":"I", "x":8, "y":0}, | ||
| 19 | {"label":"O", "x":9, "y":0}, | ||
| 20 | {"label":"P", "x":10, "y":0}, | ||
| 21 | {"label":"|", "x":11, "y":0, "w":1.75}, | ||
| 22 | {"label":"Caps Lock", "x":0, "y":1, "w":1.25}, | ||
| 23 | {"label":"A", "x":1.25, "y":1}, | ||
| 24 | {"label":"S", "x":2.25, "y":1}, | ||
| 25 | {"label":"D", "x":3.25, "y":1}, | ||
| 26 | {"label":"F", "x":4.25, "y":1}, | ||
| 27 | {"label":"G", "x":5.25, "y":1}, | ||
| 28 | {"label":"H", "x":6.25, "y":1}, | ||
| 29 | {"label":"J", "x":7.25, "y":1}, | ||
| 30 | {"label":"K", "x":8.25, "y":1}, | ||
| 31 | {"label":"L", "x":9.25, "y":1}, | ||
| 32 | {"label":":", "x":10.25, "y":1}, | ||
| 33 | {"label":"\"", "x":11.25, "y":1, "w":1.5}, | ||
| 34 | {"label":"Shift", "x":0, "y":2, "w":1.75}, | ||
| 35 | {"label":"Z", "x":1.75, "y":2}, | ||
| 36 | {"label":"X", "x":2.75, "y":2}, | ||
| 37 | {"label":"C", "x":3.75, "y":2}, | ||
| 38 | {"label":"V", "x":4.75, "y":2}, | ||
| 39 | {"label":"B", "x":5.75, "y":2}, | ||
| 40 | {"label":"N", "x":6.75, "y":2}, | ||
| 41 | {"label":"M", "x":7.75, "y":2}, | ||
| 42 | {"label":"<", "x":8.75, "y":2}, | ||
| 43 | {"label":">", "x":9.75, "y":2}, | ||
| 44 | {"label":"?", "x":10.75, "y":2}, | ||
| 45 | {"x":11.75, "y":2}, | ||
| 46 | {"label":"Ctrl", "x":0, "y":3, "w":1.25}, | ||
| 47 | {"label":"Win", "x":1.25, "y":3, "w":1.5}, | ||
| 48 | {"label":"Alt", "x":2.75, "y":3, "w":1.25}, | ||
| 49 | {"x":4, "y":3, "w":2.25}, | ||
| 50 | {"x":6.25, "y":3, "w":2}, | ||
| 51 | {"label":"Alt", "x":8.25, "y":3, "w":1.25}, | ||
| 52 | {"label":"Win", "x":9.5, "y":3, "w":1.5}, | ||
| 53 | {"label":"Menu", "x":11, "y":3, "w":1.75} ] | ||
| 54 | }, | ||
| 55 | |||
| 56 | "LAYOUT_arrow": { | ||
| 57 | "layout": [ | ||
| 58 | {"label":"Tab", "x":0, "y":0}, | ||
| 59 | {"label":"Q", "x":1, "y":0}, | ||
| 60 | {"label":"W", "x":2, "y":0}, | ||
| 61 | {"label":"E", "x":3, "y":0}, | ||
| 62 | {"label":"R", "x":4, "y":0}, | ||
| 63 | {"label":"T", "x":5, "y":0}, | ||
| 64 | {"label":"Y", "x":6, "y":0}, | ||
| 65 | {"label":"U", "x":7, "y":0}, | ||
| 66 | {"label":"I", "x":8, "y":0}, | ||
| 67 | {"label":"O", "x":9, "y":0}, | ||
| 68 | {"label":"P", "x":10, "y":0}, | ||
| 69 | {"label":"|", "x":11, "y":0, "w":1.75}, | ||
| 70 | {"label":"Caps Lock", "x":0, "y":1, "w":1.25}, | ||
| 71 | {"label":"A", "x":1.25, "y":1}, | ||
| 72 | {"label":"S", "x":2.25, "y":1}, | ||
| 73 | {"label":"D", "x":3.25, "y":1}, | ||
| 74 | {"label":"F", "x":4.25, "y":1}, | ||
| 75 | {"label":"G", "x":5.25, "y":1}, | ||
| 76 | {"label":"H", "x":6.25, "y":1}, | ||
| 77 | {"label":"J", "x":7.25, "y":1}, | ||
| 78 | {"label":"K", "x":8.25, "y":1}, | ||
| 79 | {"label":"L", "x":9.25, "y":1}, | ||
| 80 | {"label":":", "x":10.25, "y":1}, | ||
| 81 | {"label":"\"", "x":11.25, "y":1, "w":1.5}, | ||
| 82 | {"label":"Shift", "x":0, "y":2, "w":1.75}, | ||
| 83 | {"label":"Z", "x":1.75, "y":2}, | ||
| 84 | {"label":"X", "x":2.75, "y":2}, | ||
| 85 | {"label":"C", "x":3.75, "y":2}, | ||
| 86 | {"label":"V", "x":4.75, "y":2}, | ||
| 87 | {"label":"B", "x":5.75, "y":2}, | ||
| 88 | {"label":"N", "x":6.75, "y":2}, | ||
| 89 | {"label":"M", "x":7.75, "y":2}, | ||
| 90 | {"label":"<", "x":8.75, "y":2}, | ||
| 91 | {"label":">", "x":9.75, "y":2}, | ||
| 92 | {"label":"?", "x":10.75, "y":2}, | ||
| 93 | {"x":11.75, "y":2}, | ||
| 94 | {"label":"Ctrl", "x":0, "y":3, "w":1.25}, | ||
| 95 | {"label":"Win", "x":1.25, "y":3, "w":1.5}, | ||
| 96 | {"label":"Alt", "x":2.75, "y":3, "w":1.25}, | ||
| 97 | {"x":4, "y":3, "w":2.25}, | ||
| 98 | {"x":6.25, "y":3, "w":2}, | ||
| 99 | {"x":8.25, "y":3, "w":1.5}, | ||
| 100 | {"label":"Alt", "x":9.75, "y":3}, | ||
| 101 | {"label":"Win", "x":10.75, "y":3}, | ||
| 102 | {"label":"Menu", "x":11.75, "y":3} ] | ||
| 103 | }, | ||
| 104 | |||
| 105 | "LAYOUT_command": { | ||
| 106 | "layout": [ | ||
| 107 | {"label":"Tab", "x":0, "y":0}, | ||
| 108 | {"label":"Q", "x":1, "y":0}, | ||
| 109 | {"label":"W", "x":2, "y":0}, | ||
| 110 | {"label":"E", "x":3, "y":0}, | ||
| 111 | {"label":"R", "x":4, "y":0}, | ||
| 112 | {"label":"T", "x":5, "y":0}, | ||
| 113 | {"label":"Y", "x":6, "y":0}, | ||
| 114 | {"label":"U", "x":7, "y":0}, | ||
| 115 | {"label":"I", "x":8, "y":0}, | ||
| 116 | {"label":"O", "x":9, "y":0}, | ||
| 117 | {"label":"P", "x":10, "y":0}, | ||
| 118 | {"label":"|", "x":11, "y":0, "w":1.75}, | ||
| 119 | {"label":"Caps Lock", "x":0, "y":1, "w":1.25}, | ||
| 120 | {"label":"A", "x":1.25, "y":1}, | ||
| 121 | {"label":"S", "x":2.25, "y":1}, | ||
| 122 | {"label":"D", "x":3.25, "y":1}, | ||
| 123 | {"label":"F", "x":4.25, "y":1}, | ||
| 124 | {"label":"G", "x":5.25, "y":1}, | ||
| 125 | {"label":"H", "x":6.25, "y":1}, | ||
| 126 | {"label":"J", "x":7.25, "y":1}, | ||
| 127 | {"label":"K", "x":8.25, "y":1}, | ||
| 128 | {"label":"L", "x":9.25, "y":1}, | ||
| 129 | {"label":":", "x":10.25, "y":1}, | ||
| 130 | {"label":"\"", "x":11.25, "y":1, "w":1.5}, | ||
| 131 | {"label":"Shift", "x":0, "y":2, "w":1.75}, | ||
| 132 | {"label":"Z", "x":1.75, "y":2}, | ||
| 133 | {"label":"X", "x":2.75, "y":2}, | ||
| 134 | {"label":"C", "x":3.75, "y":2}, | ||
| 135 | {"label":"V", "x":4.75, "y":2}, | ||
| 136 | {"label":"B", "x":5.75, "y":2}, | ||
| 137 | {"label":"N", "x":6.75, "y":2}, | ||
| 138 | {"label":"M", "x":7.75, "y":2}, | ||
| 139 | {"label":"<", "x":8.75, "y":2}, | ||
| 140 | {"label":">", "x":9.75, "y":2}, | ||
| 141 | {"label":"?", "x":10.75, "y":2}, | ||
| 142 | {"x":11.75, "y":2}, | ||
| 143 | {"label":"Ctrl", "x":0, "y":3}, | ||
| 144 | {"label":"Win", "x":1, "y":3}, | ||
| 145 | {"label":"Alt", "x":2, "y":3}, | ||
| 146 | {"x":3, "y":3}, | ||
| 147 | {"x":4, "y":3, "w":2.25}, | ||
| 148 | {"x":6.25, "y":3, "w":2}, | ||
| 149 | {"x":8.25, "y":3, "w":1.5}, | ||
| 150 | {"label":"Alt", "x":9.75, "y":3, "w":1.5}, | ||
| 151 | {"label":"Win", "x":11.25, "y":3, "w":1.5} ] | ||
| 152 | }, | ||
| 153 | |||
| 154 | "LAYOUT_arrow_command": { | ||
| 155 | "layout": [ | ||
| 156 | {"label":"Tab", "x":0, "y":0}, | ||
| 157 | {"label":"Q", "x":1, "y":0}, | ||
| 158 | {"label":"W", "x":2, "y":0}, | ||
| 159 | {"label":"E", "x":3, "y":0}, | ||
| 160 | {"label":"R", "x":4, "y":0}, | ||
| 161 | {"label":"T", "x":5, "y":0}, | ||
| 162 | {"label":"Y", "x":6, "y":0}, | ||
| 163 | {"label":"U", "x":7, "y":0}, | ||
| 164 | {"label":"I", "x":8, "y":0}, | ||
| 165 | {"label":"O", "x":9, "y":0}, | ||
| 166 | {"label":"P", "x":10, "y":0}, | ||
| 167 | {"label":"|", "x":11, "y":0, "w":1.75}, | ||
| 168 | {"label":"Caps Lock", "x":0, "y":1, "w":1.25}, | ||
| 169 | {"label":"A", "x":1.25, "y":1}, | ||
| 170 | {"label":"S", "x":2.25, "y":1}, | ||
| 171 | {"label":"D", "x":3.25, "y":1}, | ||
| 172 | {"label":"F", "x":4.25, "y":1}, | ||
| 173 | {"label":"G", "x":5.25, "y":1}, | ||
| 174 | {"label":"H", "x":6.25, "y":1}, | ||
| 175 | {"label":"J", "x":7.25, "y":1}, | ||
| 176 | {"label":"K", "x":8.25, "y":1}, | ||
| 177 | {"label":"L", "x":9.25, "y":1}, | ||
| 178 | {"label":":", "x":10.25, "y":1}, | ||
| 179 | {"label":"\"", "x":11.25, "y":1, "w":1.5}, | ||
| 180 | {"label":"Shift", "x":0, "y":2, "w":1.75}, | ||
| 181 | {"label":"Z", "x":1.75, "y":2}, | ||
| 182 | {"label":"X", "x":2.75, "y":2}, | ||
| 183 | {"label":"C", "x":3.75, "y":2}, | ||
| 184 | {"label":"V", "x":4.75, "y":2}, | ||
| 185 | {"label":"B", "x":5.75, "y":2}, | ||
| 186 | {"label":"N", "x":6.75, "y":2}, | ||
| 187 | {"label":"M", "x":7.75, "y":2}, | ||
| 188 | {"label":"<", "x":8.75, "y":2}, | ||
| 189 | {"label":">", "x":9.75, "y":2}, | ||
| 190 | {"label":"?", "x":10.75, "y":2}, | ||
| 191 | {"x":11.75, "y":2}, | ||
| 192 | {"label":"Ctrl", "x":0, "y":3}, | ||
| 193 | {"label":"Win", "x":1, "y":3}, | ||
| 194 | {"label":"Alt", "x":2, "y":3}, | ||
| 195 | {"x":3, "y":3}, | ||
| 196 | {"x":4, "y":3, "w":2.25}, | ||
| 197 | {"x":6.25, "y":3, "w":2}, | ||
| 198 | {"x":8.25, "y":3, "w":1.5}, | ||
| 199 | {"label":"Alt", "x":9.75, "y":3}, | ||
| 200 | {"label":"Win", "x":10.75, "y":3}, | ||
| 201 | {"label":"Menu", "x":11.75, "y":3} ] | ||
| 202 | } | ||
| 203 | } | ||
| 204 | } | ||
diff --git a/keyboards/beatervan/keymaps/default/keymap.c b/keyboards/beatervan/keymaps/default/keymap.c new file mode 100644 index 000000000..a99b9c9e5 --- /dev/null +++ b/keyboards/beatervan/keymaps/default/keymap.c | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | /* Copyright 2020 OJtheTiny | ||
| 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 | |||
| 18 | enum layers { | ||
| 19 | _QW, | ||
| 20 | _DV, | ||
| 21 | _CM, | ||
| 22 | _L1, | ||
| 23 | _L2, | ||
| 24 | _L3, | ||
| 25 | }; | ||
| 26 | |||
| 27 | enum custom_keycodes { | ||
| 28 | DVORAK = SAFE_RANGE, | ||
| 29 | QWERTY, | ||
| 30 | COLEMAK | ||
| 31 | }; | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | [_QW] = LAYOUT( /* Qwerty */ | ||
| 35 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 36 | MO(_L1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, MO(_L1), | ||
| 37 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(_L2), | ||
| 38 | KC_LCTL, MO(_L2), KC_LGUI, KC_ENT, KC_SPC, KC_RALT, KC_ESC, TG(_L3) | ||
| 39 | ), | ||
| 40 | [_DV] = LAYOUT( /* Dvorak */ | ||
| 41 | KC_TAB, KC_SLSH, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, | ||
| 42 | MO(_L1), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, MO(_L1), | ||
| 43 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, MO(_L2), | ||
| 44 | KC_LCTL, MO(_L2), KC_LGUI, KC_ENT, KC_SPC, KC_RALT, KC_ESC, TG(_L3) | ||
| 45 | ), | ||
| 46 | [_CM] = LAYOUT( /* Colemak */ | ||
| 47 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, | ||
| 48 | MO(_L1), KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, MO(_L1), | ||
| 49 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(_L2), | ||
| 50 | KC_LCTL, MO(_L2), KC_LGUI, KC_ENT, KC_SPC, KC_RALT, KC_ESC, TG(_L3) | ||
| 51 | ), | ||
| 52 | [_L1] = LAYOUT( /* LAYER 1 */ | ||
| 53 | KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 54 | _______, KC_BSLS, KC_QUOT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT, _______, | ||
| 55 | _______, KC_ESC, _______, KC_PSCR, _______, _______, _______, KC_MSTP, KC_MPLY, KC_MPRV, KC_MNXT, KC_RSFT, | ||
| 56 | _______, KC_LGUI, _______, _______, _______, _______, _______, _______ | ||
| 57 | ), | ||
| 58 | [_L2] = LAYOUT( /* LAYER 2 */ | ||
| 59 | _______, QWERTY, DVORAK, COLEMAK, _______, _______, _______, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 60 | KC_ESC, KC_PIPE, KC_DQUO, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_4, KC_5, KC_6, KC_VOLU, KC_ENT, | ||
| 61 | _______, _______, _______, _______, _______, _______, KC_0, KC_1, KC_2, KC_3, KC_VOLD, _______, | ||
| 62 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 63 | ), | ||
| 64 | [_L3] = LAYOUT( /* LAYER 3 */ | ||
| 65 | _______, _______, _______, _______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, | ||
| 66 | KC_ESC, _______, _______, _______, _______, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, | ||
| 67 | KC_LSFT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_F9, KC_F10, KC_F11, KC_F12, _______, | ||
| 68 | _______, KC_LSFT, KC_B, KC_SPC, KC_C, _______, _______, _______ | ||
| 69 | ) | ||
| 70 | }; | ||
| 71 | |||
| 72 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 73 | switch(keycode) { | ||
| 74 | case DVORAK: | ||
| 75 | if (record->event.pressed) { | ||
| 76 | set_single_persistent_default_layer(_DV); | ||
| 77 | } | ||
| 78 | return false; | ||
| 79 | case QWERTY: | ||
| 80 | if (record->event.pressed) { | ||
| 81 | set_single_persistent_default_layer(_QW); | ||
| 82 | } | ||
| 83 | return false; | ||
| 84 | case COLEMAK: | ||
| 85 | if (record->event.pressed) { | ||
| 86 | set_single_persistent_default_layer(_CM); | ||
| 87 | } | ||
| 88 | return false; | ||
| 89 | default: | ||
| 90 | return true; | ||
| 91 | } | ||
| 92 | return true; | ||
| 93 | }; | ||
diff --git a/keyboards/beatervan/keymaps/default/readme.md b/keyboards/beatervan/keymaps/default/readme.md new file mode 100644 index 000000000..ac84c08cf --- /dev/null +++ b/keyboards/beatervan/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for tv44 \ No newline at end of file | |||
diff --git a/keyboards/beatervan/keymaps/oj/keymap.c b/keyboards/beatervan/keymaps/oj/keymap.c new file mode 100644 index 000000000..6b32c4ddc --- /dev/null +++ b/keyboards/beatervan/keymaps/oj/keymap.c | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | /* Copyright 2020 OJtheTiny | ||
| 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 | |||
| 18 | enum layers { | ||
| 19 | _QW, | ||
| 20 | _DV, | ||
| 21 | _CM, | ||
| 22 | _L1, | ||
| 23 | _L2, | ||
| 24 | _L3 | ||
| 25 | }; | ||
| 26 | enum custom_keycodes { | ||
| 27 | DVORAK = SAFE_RANGE, | ||
| 28 | QWERTY, | ||
| 29 | COLEMAK | ||
| 30 | }; | ||
| 31 | |||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | [_QW] = LAYOUT( /* Qwerty */ | ||
| 35 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
| 36 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENTER, | ||
| 37 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(_L2), | ||
| 38 | KC_TAB, MO(_L1), KC_LGUI, KC_SPC, KC_BSPC, KC_LALT, KC_RALT, TG(_L3) | ||
| 39 | ), | ||
| 40 | [_DV] = LAYOUT( /* Dvorak */ | ||
| 41 | KC_ESC, KC_SLSH, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_QUOT, | ||
| 42 | KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_ENTER, | ||
| 43 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, MO(_L2), | ||
| 44 | KC_TAB, MO(_L1), KC_LGUI, KC_SPC, KC_BSPC, KC_LALT, KC_RALT, TG(_L3) | ||
| 45 | ), | ||
| 46 | [_CM] = LAYOUT( /* Colemak */ | ||
| 47 | KC_ESC, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_QUOT, | ||
| 48 | KC_LCTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_ENTER, | ||
| 49 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(_L2), | ||
| 50 | KC_TAB, MO(_L1), KC_LGUI, KC_SPC, KC_BSPC, KC_LALT, KC_RALT, TG(_L3) | ||
| 51 | ), | ||
| 52 | [_L1] = LAYOUT( /* NUM */ | ||
| 53 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 54 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_SCLN, KC_BSLS, | ||
| 55 | _______, _______, _______, KC_PSCR, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_MINS, KC_EQL, | ||
| 56 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 57 | ), | ||
| 58 | [_L2] = LAYOUT( /* F Keys */ | ||
| 59 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 60 | _______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, KC_ENTER, | ||
| 61 | _______, QWERTY, DVORAK, COLEMAK, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 62 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 63 | ), | ||
| 64 | [_L3] = LAYOUT( /* Gaming */ | ||
| 65 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, | ||
| 66 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, | ||
| 67 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, _______, MO(_L2), KC_F9, KC_F10, KC_F11, KC_F12, _______, | ||
| 68 | KC_LSFT, KC_Z, KC_B, KC_SPC, KC_BSPC, _______, _______, TG(_L3) | ||
| 69 | ) | ||
| 70 | }; | ||
| 71 | |||
| 72 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 73 | switch(keycode) { | ||
| 74 | case DVORAK: | ||
| 75 | if (record->event.pressed) { | ||
| 76 | set_single_persistent_default_layer(_DV); | ||
| 77 | } | ||
| 78 | return false; | ||
| 79 | case QWERTY: | ||
| 80 | if (record->event.pressed) { | ||
| 81 | set_single_persistent_default_layer(_QW); | ||
| 82 | } | ||
| 83 | return false; | ||
| 84 | case COLEMAK: | ||
| 85 | if (record->event.pressed) { | ||
| 86 | set_single_persistent_default_layer(_CM); | ||
| 87 | } | ||
| 88 | return false; | ||
| 89 | default: | ||
| 90 | return true; | ||
| 91 | } | ||
| 92 | return true; | ||
| 93 | }; | ||
diff --git a/keyboards/beatervan/keymaps/oj/readme.md b/keyboards/beatervan/keymaps/oj/readme.md new file mode 100644 index 000000000..34c2f075c --- /dev/null +++ b/keyboards/beatervan/keymaps/oj/readme.md | |||
| @@ -0,0 +1 @@ | |||
| #Objectively superior keymap for v44 | |||
diff --git a/keyboards/beatervan/readme.md b/keyboards/beatervan/readme.md new file mode 100644 index 000000000..2b7dd5905 --- /dev/null +++ b/keyboards/beatervan/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Beatervan (minivan) | ||
| 2 | |||
| 3 | A Pro-Micro based Minivan with THT diodes | ||
| 4 | |||
| 5 | Keyboard Maintainer: OJ | ||
| 6 | Hardware Supported: Beatervan PCB, 32u4 "pro-micro" | ||
| 7 | Hardware Availability: Private GB | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make beatervan:default | ||
| 12 | |||
| 13 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/beatervan/rules.mk b/keyboards/beatervan/rules.mk new file mode 100644 index 000000000..1ea4a84d5 --- /dev/null +++ b/keyboards/beatervan/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 20 | MIDI_ENABLE = no # MIDI controls | ||
| 21 | UNICODE_ENABLE = yes # Unicode | ||
| 22 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 23 | AUDIO_ENABLE = no # Audio output on port C6 | ||
