diff options
| author | arnstadm <45672752+arnstadm@users.noreply.github.com> | 2021-08-12 15:59:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-12 06:59:07 -0700 |
| commit | ac92f4b72197145c86a2ea0da461d398cfaa1130 (patch) | |
| tree | 553ef7264cf4cd83402c3434bfa4a7a77228bec5 | |
| parent | 6a5c07680cc80a5fde62307ca1b651e228b2073e (diff) | |
| download | qmk_firmware-ac92f4b72197145c86a2ea0da461d398cfaa1130.tar.gz qmk_firmware-ac92f4b72197145c86a2ea0da461d398cfaa1130.zip | |
[Keyboard] Add Edda Keyboard (#13953)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/edda/config.h | 46 | ||||
| -rw-r--r-- | keyboards/edda/edda.c | 50 | ||||
| -rw-r--r-- | keyboards/edda/edda.h | 47 | ||||
| -rw-r--r-- | keyboards/edda/info.json | 156 | ||||
| -rw-r--r-- | keyboards/edda/keymaps/default/keymap.c | 40 | ||||
| -rw-r--r-- | keyboards/edda/keymaps/via/keymap.c | 53 | ||||
| -rw-r--r-- | keyboards/edda/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/edda/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/edda/rules.mk | 24 |
9 files changed, 438 insertions, 0 deletions
diff --git a/keyboards/edda/config.h b/keyboards/edda/config.h new file mode 100644 index 000000000..bd9a0ab77 --- /dev/null +++ b/keyboards/edda/config.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Martin Arnstad | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | #pragma once | ||
| 15 | |||
| 16 | #include "config_common.h" | ||
| 17 | |||
| 18 | /* USB Device descriptor parameter */ | ||
| 19 | #define VENDOR_ID 0x4D45 | ||
| 20 | #define PRODUCT_ID 0x4544 | ||
| 21 | #define DEVICE_VER 0x0001 | ||
| 22 | #define MANUFACTURER Mekanisk | ||
| 23 | #define PRODUCT Edda PCB | ||
| 24 | |||
| 25 | /* key matrix size */ | ||
| 26 | #define MATRIX_ROWS 5 | ||
| 27 | #define MATRIX_COLS 16 | ||
| 28 | |||
| 29 | // ROWS: Top to bottom, COLS: Left to right | ||
| 30 | |||
| 31 | #define MATRIX_ROW_PINS {F1, F0, E6, B5, B4} | ||
| 32 | #define MATRIX_COL_PINS {F4, F5, F6, F7, C7, C6, B6, B3, D7, D6, D4, D5, D3, D2, D1, D0 } | ||
| 33 | |||
| 34 | /* COL2ROW or ROW2COL */ | ||
| 35 | #define DIODE_DIRECTION COL2ROW | ||
| 36 | |||
| 37 | /* define if matrix has ghost */ | ||
| 38 | //#define MATRIX_HAS_GHOST | ||
| 39 | |||
| 40 | /* Set 0 if debouncing isn't needed */ | ||
| 41 | #define DEBOUNCE 5 | ||
| 42 | |||
| 43 | // Indicators | ||
| 44 | #define INDICATOR_PIN_0 B2 | ||
| 45 | #define INDICATOR_PIN_1 B1 | ||
| 46 | #define INDICATOR_PIN_2 B0 \ No newline at end of file | ||
diff --git a/keyboards/edda/edda.c b/keyboards/edda/edda.c new file mode 100644 index 000000000..a04f3cc4c --- /dev/null +++ b/keyboards/edda/edda.c | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Martin Arnstad | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | #include "edda.h" | ||
| 15 | |||
| 16 | void keyboard_pre_init_kb(void) { | ||
| 17 | // Call the keyboard pre init code. | ||
| 18 | keyboard_pre_init_user(); | ||
| 19 | |||
| 20 | // Set our LED pins as output | ||
| 21 | setPinOutput(B2); | ||
| 22 | setPinOutput(B1); | ||
| 23 | setPinOutput(B0); | ||
| 24 | } | ||
| 25 | |||
| 26 | __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 27 | switch (get_highest_layer(state)) { | ||
| 28 | case 1: | ||
| 29 | writePin(B2, 1); | ||
| 30 | writePin(B1, 0); | ||
| 31 | writePin(B0, 0); | ||
| 32 | break; | ||
| 33 | case 2: | ||
| 34 | writePin(B2, 1); | ||
| 35 | writePin(B1, 1); | ||
| 36 | writePin(B0, 0); | ||
| 37 | break; | ||
| 38 | case 3: | ||
| 39 | writePin(B2, 1); | ||
| 40 | writePin(B1, 1); | ||
| 41 | writePin(B0, 1); | ||
| 42 | break; | ||
| 43 | default: // for any other layers, or the default layer | ||
| 44 | writePin(B2, 0); | ||
| 45 | writePin(B1, 0); | ||
| 46 | writePin(B0, 0); | ||
| 47 | break; | ||
| 48 | } | ||
| 49 | return state; | ||
| 50 | } | ||
diff --git a/keyboards/edda/edda.h b/keyboards/edda/edda.h new file mode 100644 index 000000000..d15606b2c --- /dev/null +++ b/keyboards/edda/edda.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Martin Arnstad | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | #pragma once | ||
| 15 | |||
| 16 | #include "quantum.h" | ||
| 17 | |||
| 18 | #define KNO KC_NO | ||
| 19 | #define LAYOUT_default LAYOUT_alice_split_bs | ||
| 20 | |||
| 21 | #define LAYOUT_alice_split_bs( \ | ||
| 22 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \ | ||
| 23 | K10, K11, K12, K13, K14, K15, K16, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, \ | ||
| 24 | K20, K21, K22, K23, K24, K25, K26, K28, K29, K2A, K2B, K2C, K2D, K2F, \ | ||
| 25 | K31, K32, K33, K34, K35, K36, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, \ | ||
| 26 | K41, K43, K44, K46, K49, K4B, K4F \ | ||
| 27 | ) { \ | ||
| 28 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \ | ||
| 29 | { K10, K11, K12, K13, K14, K15, K16, KNO, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ | ||
| 30 | { K20, K21, K22, K23, K24, K25, K26, KNO, K28, K29, K2A, K2B, K2C, K2D, KNO, K2F }, \ | ||
| 31 | { KNO, K31, K32, K33, K34, K35, K36, KNO, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, \ | ||
| 32 | { KNO, K41, KNO, K43, K44, KNO, K46, KNO, KNO, K49, KNO, K4B, KNO, KNO, KNO, K4F } \ | ||
| 33 | } | ||
| 34 | |||
| 35 | #define LAYOUT_alice( \ | ||
| 36 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0F, \ | ||
| 37 | K10, K11, K12, K13, K14, K15, K16, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, \ | ||
| 38 | K20, K21, K22, K23, K24, K25, K26, K28, K29, K2A, K2B, K2C, K2D, K2F, \ | ||
| 39 | K31, K32, K33, K34, K35, K36, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, \ | ||
| 40 | K41, K43, K44, K46, K49, K4B, K4F \ | ||
| 41 | ) { \ | ||
| 42 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, KNO, K0F }, \ | ||
| 43 | { K10, K11, K12, K13, K14, K15, K16, KNO, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \ | ||
| 44 | { K20, K21, K22, K23, K24, K25, K26, KNO, K28, K29, K2A, K2B, K2C, K2D, KNO, K2F }, \ | ||
| 45 | { KNO, K31, K32, K33, K34, K35, K36, KNO, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, \ | ||
| 46 | { KNO, K41, KNO, K43, K44, KNO, K46, KNO, KNO, K49, KNO, K4B, KNO, KNO, KNO, K4F } \ | ||
| 47 | } | ||
diff --git a/keyboards/edda/info.json b/keyboards/edda/info.json new file mode 100644 index 000000000..5f48d79ed --- /dev/null +++ b/keyboards/edda/info.json | |||
| @@ -0,0 +1,156 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Edda", | ||
| 3 | "url": "https://mekanisk.com", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 19.75, | ||
| 6 | "height": 5.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_alice_split_bs": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Esc", "x":0.5, "y":0}, | ||
| 11 | {"label":"`", "x":1.75, "y":0.25}, | ||
| 12 | {"label":"1", "x":2.75, "y":0.25}, | ||
| 13 | {"label":"2", "x":3.75, "y":0}, | ||
| 14 | {"label":"3", "x":4.75, "y":0.25}, | ||
| 15 | {"label":"4", "x":5.75, "y":0.25}, | ||
| 16 | {"label":"5", "x":6.75, "y":0.25}, | ||
| 17 | {"label":"6", "x":7.75, "y":0.25}, | ||
| 18 | {"label":"7", "x":11, "y":0.25}, | ||
| 19 | {"label":"8", "x":12, "y":0.25}, | ||
| 20 | {"label":"9", "x":13, "y":0.25}, | ||
| 21 | {"label":"0", "x":14, "y":0.25}, | ||
| 22 | {"label":"-", "x":15, "y":0}, | ||
| 23 | {"label":"=", "x":16, "y":0.25}, | ||
| 24 | {"label":"Del", "x":17, "y":0.25}, | ||
| 25 | {"label":"Backspace", "x":18, "y":0.25}, | ||
| 26 | |||
| 27 | {"label":"PgUp", "x":0.25, "y":1}, | ||
| 28 | {"label":"Tab", "x":1.5, "y":1.25, "w":1.5}, | ||
| 29 | {"label":"Q", "x":3, "y":1.25}, | ||
| 30 | {"label":"W", "x":4.25, "y":1.25}, | ||
| 31 | {"label":"E", "x":5.25, "y":1.25}, | ||
| 32 | {"label":"R", "x":6.25, "y":1.25}, | ||
| 33 | {"label":"T", "x":7.25, "y":1.25}, | ||
| 34 | {"label":"Y", "x":10.5, "y":1.25}, | ||
| 35 | {"label":"U", "x":11.5, "y":1.25}, | ||
| 36 | {"label":"I", "x":12.5, "y":1.25}, | ||
| 37 | {"label":"O", "x":13.5, "y":1.25}, | ||
| 38 | {"label":"P", "x":14.75, "y":1.25}, | ||
| 39 | {"label":"{", "x":15.75, "y":1.25}, | ||
| 40 | {"label":"}", "x":16.75, "y":1.25}, | ||
| 41 | {"label":"|", "x":17.75, "y":1.25, "w":1.5}, | ||
| 42 | |||
| 43 | {"label":"PgDn", "x":0, "y":2}, | ||
| 44 | {"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75}, | ||
| 45 | {"label":"A", "x":3.25, "y":2.25}, | ||
| 46 | {"label":"S", "x":4.5, "y":2.25}, | ||
| 47 | {"label":"D", "x":5.5, "y":2.25}, | ||
| 48 | {"label":"F", "x":6.5, "y":2.25}, | ||
| 49 | {"label":"G", "x":7.5, "y":2.25}, | ||
| 50 | {"label":"H", "x":10.75, "y":2.25}, | ||
| 51 | {"label":"J", "x":11.75, "y":2.25}, | ||
| 52 | {"label":"K", "x":12.75, "y":2.25}, | ||
| 53 | {"label":"L", "x":13.75, "y":2.25}, | ||
| 54 | {"label":":", "x":15.25, "y":2.25}, | ||
| 55 | {"label":"\"", "x":16.25, "y":2.25}, | ||
| 56 | {"label":"Enter", "x":17.25, "y":2.25, "w":2.25}, | ||
| 57 | |||
| 58 | {"label":"Shift", "x":1.5, "y":3.25, "w":2.25}, | ||
| 59 | {"label":"Z", "x":3.75, "y":3.25}, | ||
| 60 | {"label":"X", "x":5, "y":3.25}, | ||
| 61 | {"label":"C", "x":6, "y":3.25}, | ||
| 62 | {"label":"V", "x":7, "y":3.25}, | ||
| 63 | {"label":"B", "x":8, "y":3.25}, | ||
| 64 | {"label":"Fn", "x":10.25, "y":3.25}, | ||
| 65 | {"label":"N", "x":11.25, "y":3.25}, | ||
| 66 | {"label":"M", "x":12.25, "y":3.25}, | ||
| 67 | {"label":"<", "x":13.25, "y":3.25}, | ||
| 68 | {"label":">", "x":15, "y":3.25}, | ||
| 69 | {"label":"?", "x":16, "y":3.25}, | ||
| 70 | {"label":"Shift", "x":17, "y":3.25, "w":1.75}, | ||
| 71 | {"label":"Fn", "x":18.75, "y":3.25}, | ||
| 72 | |||
| 73 | {"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5}, | ||
| 74 | {"label":"Alt", "x":5, "y":4.25, "w":1.5}, | ||
| 75 | {"label":"Space", "x":6.5, "y":4.25, "w":2}, | ||
| 76 | {"label":"Menu", "x":8.5, "y":4.25}, | ||
| 77 | {"label":"Space", "x":10.25, "y":4.25, "w":2.75}, | ||
| 78 | {"label":"Alt", "x":13, "y":4.25, "w":1.5}, | ||
| 79 | {"label":"Ctrl", "x":18, "y":4.25, "w":1.5} | ||
| 80 | ] | ||
| 81 | }, | ||
| 82 | "LAYOUT_alice": { | ||
| 83 | "layout": [ | ||
| 84 | {"label":"Esc", "x":0.5, "y":0}, | ||
| 85 | {"label":"`", "x":1.75, "y":0.25}, | ||
| 86 | {"label":"1", "x":2.75, "y":0.25}, | ||
| 87 | {"label":"2", "x":3.75, "y":0}, | ||
| 88 | {"label":"3", "x":4.75, "y":0.25}, | ||
| 89 | {"label":"4", "x":5.75, "y":0.25}, | ||
| 90 | {"label":"5", "x":6.75, "y":0.25}, | ||
| 91 | {"label":"6", "x":7.75, "y":0.25}, | ||
| 92 | {"label":"7", "x":11, "y":0.25}, | ||
| 93 | {"label":"8", "x":12, "y":0.25}, | ||
| 94 | {"label":"9", "x":13, "y":0.25}, | ||
| 95 | {"label":"0", "x":14, "y":0.25}, | ||
| 96 | {"label":"-", "x":15, "y":0}, | ||
| 97 | {"label":"=", "x":16, "y":0.25}, | ||
| 98 | {"label":"Backspace", "x":17, "y":0.25, "w":2}, | ||
| 99 | |||
| 100 | {"label":"PgUp", "x":0.25, "y":1}, | ||
| 101 | {"label":"Tab", "x":1.5, "y":1.25, "w":1.5}, | ||
| 102 | {"label":"Q", "x":3, "y":1.25}, | ||
| 103 | {"label":"W", "x":4.25, "y":1.25}, | ||
| 104 | {"label":"E", "x":5.25, "y":1.25}, | ||
| 105 | {"label":"R", "x":6.25, "y":1.25}, | ||
| 106 | {"label":"T", "x":7.25, "y":1.25}, | ||
| 107 | {"label":"Y", "x":10.5, "y":1.25}, | ||
| 108 | {"label":"U", "x":11.5, "y":1.25}, | ||
| 109 | {"label":"I", "x":12.5, "y":1.25}, | ||
| 110 | {"label":"O", "x":13.5, "y":1.25}, | ||
| 111 | {"label":"P", "x":14.75, "y":1.25}, | ||
| 112 | {"label":"{", "x":15.75, "y":1.25}, | ||
| 113 | {"label":"}", "x":16.75, "y":1.25}, | ||
| 114 | {"label":"|", "x":17.75, "y":1.25, "w":1.5}, | ||
| 115 | |||
| 116 | {"label":"PgDn", "x":0, "y":2}, | ||
| 117 | {"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75}, | ||
| 118 | {"label":"A", "x":3.25, "y":2.25}, | ||
| 119 | {"label":"S", "x":4.5, "y":2.25}, | ||
| 120 | {"label":"D", "x":5.5, "y":2.25}, | ||
| 121 | {"label":"F", "x":6.5, "y":2.25}, | ||
| 122 | {"label":"G", "x":7.5, "y":2.25}, | ||
| 123 | {"label":"H", "x":10.75, "y":2.25}, | ||
| 124 | {"label":"J", "x":11.75, "y":2.25}, | ||
| 125 | {"label":"K", "x":12.75, "y":2.25}, | ||
| 126 | {"label":"L", "x":13.75, "y":2.25}, | ||
| 127 | {"label":":", "x":15.25, "y":2.25}, | ||
| 128 | {"label":"\"", "x":16.25, "y":2.25}, | ||
| 129 | {"label":"Enter", "x":17.25, "y":2.25, "w":2.25}, | ||
| 130 | |||
| 131 | {"label":"Shift", "x":1.5, "y":3.25, "w":2.25}, | ||
| 132 | {"label":"Z", "x":3.75, "y":3.25}, | ||
| 133 | {"label":"X", "x":5, "y":3.25}, | ||
| 134 | {"label":"C", "x":6, "y":3.25}, | ||
| 135 | {"label":"V", "x":7, "y":3.25}, | ||
| 136 | {"label":"B", "x":8, "y":3.25}, | ||
| 137 | {"label":"Fn", "x":10.25, "y":3.25}, | ||
| 138 | {"label":"N", "x":11.25, "y":3.25}, | ||
| 139 | {"label":"M", "x":12.25, "y":3.25}, | ||
| 140 | {"label":"<", "x":13.25, "y":3.25}, | ||
| 141 | {"label":">", "x":15, "y":3.25}, | ||
| 142 | {"label":"?", "x":16, "y":3.25}, | ||
| 143 | {"label":"Shift", "x":17, "y":3.25, "w":1.75}, | ||
| 144 | {"label":"Fn", "x":18.75, "y":3.25}, | ||
| 145 | |||
| 146 | {"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5}, | ||
| 147 | {"label":"Alt", "x":5, "y":4.25, "w":1.5}, | ||
| 148 | {"label":"Space", "x":6.5, "y":4.25, "w":2}, | ||
| 149 | {"label":"Menu", "x":8.5, "y":4.25}, | ||
| 150 | {"label":"Space", "x":10.25, "y":4.25, "w":2.75}, | ||
| 151 | {"label":"Alt", "x":13, "y":4.25, "w":1.5}, | ||
| 152 | {"label":"Ctrl", "x":18, "y":4.25, "w":1.5} | ||
| 153 | ] | ||
| 154 | } | ||
| 155 | } | ||
| 156 | } | ||
diff --git a/keyboards/edda/keymaps/default/keymap.c b/keyboards/edda/keymaps/default/keymap.c new file mode 100644 index 000000000..d935a7482 --- /dev/null +++ b/keyboards/edda/keymaps/default/keymap.c | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Martin Arnstad | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | #include QMK_KEYBOARD_H | ||
| 15 | |||
| 16 | |||
| 17 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 18 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 19 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 20 | // entirely and just use numbers. | ||
| 21 | #define _BASE 0 | ||
| 22 | #define _FN1 1 | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | [_BASE] = LAYOUT_alice_split_bs( | ||
| 26 | KC_ESC, KC_GRAVE, 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_DEL, KC_BSPC, | ||
| 27 | KC_PGUP, 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, | ||
| 28 | KC_PGDN, 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, | ||
| 29 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RGUI, | ||
| 30 | KC_LCTL, KC_LALT, KC_SPC, MO(_FN1), KC_SPC, KC_RALT, KC_RCTL | ||
| 31 | ), | ||
| 32 | |||
| 33 | [_FN1] = LAYOUT_alice_split_bs( | ||
| 34 | RGB_TOG, _______, 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_DEL, | ||
| 35 | RGB_MOD, _______, _______, KC_UP, _______, _______, _______, RGB_SAI, RGB_HUI, RGB_VAI, _______, _______, _______, _______, _______, | ||
| 36 | RGB_RMOD, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, RGB_SAD, RGB_HUD, RGB_VAD, _______, _______, _______, _______, | ||
| 37 | _______, BL_INC, BL_DEC, BL_TOGG, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, RESET | ||
| 39 | ) | ||
| 40 | }; | ||
diff --git a/keyboards/edda/keymaps/via/keymap.c b/keyboards/edda/keymaps/via/keymap.c new file mode 100644 index 000000000..9437fbc12 --- /dev/null +++ b/keyboards/edda/keymaps/via/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Martin Arnstad | ||
| 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 | This program is distributed in the hope that it will be useful, | ||
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | GNU General Public License for more details. | ||
| 11 | You should have received a copy of the GNU General Public License | ||
| 12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 13 | */ | ||
| 14 | #include QMK_KEYBOARD_H | ||
| 15 | |||
| 16 | |||
| 17 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 18 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 19 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 20 | // entirely and just use numbers. | ||
| 21 | |||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | [0] = LAYOUT_alice_split_bs( | ||
| 25 | KC_ESC, KC_GRAVE, 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_DEL, KC_BSPC, | ||
| 26 | KC_PGUP, 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, | ||
| 27 | KC_PGDN, 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, | ||
| 28 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RGUI, | ||
| 29 | KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RCTL | ||
| 30 | ), | ||
| 31 | [1] = LAYOUT_alice_split_bs( | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 37 | ), | ||
| 38 | [2] = LAYOUT_alice_split_bs( | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 44 | ), | ||
| 45 | [3] = LAYOUT_alice_split_bs( | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 49 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 51 | ) | ||
| 52 | |||
| 53 | }; | ||
diff --git a/keyboards/edda/keymaps/via/rules.mk b/keyboards/edda/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/edda/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/edda/readme.md b/keyboards/edda/readme.md new file mode 100644 index 000000000..6bfe89b29 --- /dev/null +++ b/keyboards/edda/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Edda PCB | ||
| 2 | |||
| 3 | Alice layout PCB with top mounted USB C used in Mekanisk Edda | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [martin](https://github.com/arnstadm) | ||
| 6 | * Hardware Supported: [Edda PCB](https://tastatur.no/collections/forhandsbestilling-1/products/edda-pcb?variant=39481626001453) | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make edda:default | ||
| 11 | |||
| 12 | Flashing example for this keyboard: | ||
| 13 | |||
| 14 | make edda:default:flash | ||
| 15 | |||
| 16 | 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). | ||
| 17 | |||
| 18 | How to enter bootloader (DFU): | ||
| 19 | |||
| 20 | Press and hold the button on the keyboard (the small one on the same side as the MCU) for more than 1 second. The keyboard will then enter bootloader (DFU) mode and it's ready to flash the firmware. | ||
| 21 | Note: If holding the button a shorter time, the keyboard will just reset. If you want to exit bootloader mode without flashing a firmware, disconnect the keyboard from your PC and reconnect it. | ||
diff --git a/keyboards/edda/rules.mk b/keyboards/edda/rules.mk new file mode 100644 index 000000000..78a97cd3b --- /dev/null +++ b/keyboards/edda/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = qmk-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # 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 = no # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
| 24 | LAYOUTS = alice alice_split_bs | ||
