[Keyboard] Add Edda Keyboard (#13953)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
6a5c07680c
commit
ac92f4b721
9 changed files with 438 additions and 0 deletions
46
keyboards/edda/config.h
Normal file
46
keyboards/edda/config.h
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
/*
|
||||||
|
Copyright 2021 Martin Arnstad
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x4D45
|
||||||
|
#define PRODUCT_ID 0x4544
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Mekanisk
|
||||||
|
#define PRODUCT Edda PCB
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 16
|
||||||
|
|
||||||
|
// ROWS: Top to bottom, COLS: Left to right
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS {F1, F0, E6, B5, B4}
|
||||||
|
#define MATRIX_COL_PINS {F4, F5, F6, F7, C7, C6, B6, B3, D7, D6, D4, D5, D3, D2, D1, D0 }
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* define if matrix has ghost */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* Set 0 if debouncing isn't needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
// Indicators
|
||||||
|
#define INDICATOR_PIN_0 B2
|
||||||
|
#define INDICATOR_PIN_1 B1
|
||||||
|
#define INDICATOR_PIN_2 B0
|
50
keyboards/edda/edda.c
Normal file
50
keyboards/edda/edda.c
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
/*
|
||||||
|
Copyright 2021 Martin Arnstad
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "edda.h"
|
||||||
|
|
||||||
|
void keyboard_pre_init_kb(void) {
|
||||||
|
// Call the keyboard pre init code.
|
||||||
|
keyboard_pre_init_user();
|
||||||
|
|
||||||
|
// Set our LED pins as output
|
||||||
|
setPinOutput(B2);
|
||||||
|
setPinOutput(B1);
|
||||||
|
setPinOutput(B0);
|
||||||
|
}
|
||||||
|
|
||||||
|
__attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
switch (get_highest_layer(state)) {
|
||||||
|
case 1:
|
||||||
|
writePin(B2, 1);
|
||||||
|
writePin(B1, 0);
|
||||||
|
writePin(B0, 0);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
writePin(B2, 1);
|
||||||
|
writePin(B1, 1);
|
||||||
|
writePin(B0, 0);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
writePin(B2, 1);
|
||||||
|
writePin(B1, 1);
|
||||||
|
writePin(B0, 1);
|
||||||
|
break;
|
||||||
|
default: // for any other layers, or the default layer
|
||||||
|
writePin(B2, 0);
|
||||||
|
writePin(B1, 0);
|
||||||
|
writePin(B0, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return state;
|
||||||
|
}
|
47
keyboards/edda/edda.h
Normal file
47
keyboards/edda/edda.h
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
/*
|
||||||
|
Copyright 2021 Martin Arnstad
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define KNO KC_NO
|
||||||
|
#define LAYOUT_default LAYOUT_alice_split_bs
|
||||||
|
|
||||||
|
#define LAYOUT_alice_split_bs( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K28, K29, K2A, K2B, K2C, K2D, K2F, \
|
||||||
|
K31, K32, K33, K34, K35, K36, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, \
|
||||||
|
K41, K43, K44, K46, K49, K4B, K4F \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, KNO, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, KNO, K28, K29, K2A, K2B, K2C, K2D, KNO, K2F }, \
|
||||||
|
{ KNO, K31, K32, K33, K34, K35, K36, KNO, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, \
|
||||||
|
{ KNO, K41, KNO, K43, K44, KNO, K46, KNO, KNO, K49, KNO, K4B, KNO, KNO, KNO, K4F } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_alice( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0F, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K28, K29, K2A, K2B, K2C, K2D, K2F, \
|
||||||
|
K31, K32, K33, K34, K35, K36, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, \
|
||||||
|
K41, K43, K44, K46, K49, K4B, K4F \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, KNO, K0F }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, KNO, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, KNO, K28, K29, K2A, K2B, K2C, K2D, KNO, K2F }, \
|
||||||
|
{ KNO, K31, K32, K33, K34, K35, K36, KNO, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F }, \
|
||||||
|
{ KNO, K41, KNO, K43, K44, KNO, K46, KNO, KNO, K49, KNO, K4B, KNO, KNO, KNO, K4F } \
|
||||||
|
}
|
156
keyboards/edda/info.json
Normal file
156
keyboards/edda/info.json
Normal file
|
@ -0,0 +1,156 @@
|
||||||
|
{
|
||||||
|
"keyboard_name": "Edda",
|
||||||
|
"url": "https://mekanisk.com",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 19.75,
|
||||||
|
"height": 5.25,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_alice_split_bs": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0.5, "y":0},
|
||||||
|
{"label":"`", "x":1.75, "y":0.25},
|
||||||
|
{"label":"1", "x":2.75, "y":0.25},
|
||||||
|
{"label":"2", "x":3.75, "y":0},
|
||||||
|
{"label":"3", "x":4.75, "y":0.25},
|
||||||
|
{"label":"4", "x":5.75, "y":0.25},
|
||||||
|
{"label":"5", "x":6.75, "y":0.25},
|
||||||
|
{"label":"6", "x":7.75, "y":0.25},
|
||||||
|
{"label":"7", "x":11, "y":0.25},
|
||||||
|
{"label":"8", "x":12, "y":0.25},
|
||||||
|
{"label":"9", "x":13, "y":0.25},
|
||||||
|
{"label":"0", "x":14, "y":0.25},
|
||||||
|
{"label":"-", "x":15, "y":0},
|
||||||
|
{"label":"=", "x":16, "y":0.25},
|
||||||
|
{"label":"Del", "x":17, "y":0.25},
|
||||||
|
{"label":"Backspace", "x":18, "y":0.25},
|
||||||
|
|
||||||
|
{"label":"PgUp", "x":0.25, "y":1},
|
||||||
|
{"label":"Tab", "x":1.5, "y":1.25, "w":1.5},
|
||||||
|
{"label":"Q", "x":3, "y":1.25},
|
||||||
|
{"label":"W", "x":4.25, "y":1.25},
|
||||||
|
{"label":"E", "x":5.25, "y":1.25},
|
||||||
|
{"label":"R", "x":6.25, "y":1.25},
|
||||||
|
{"label":"T", "x":7.25, "y":1.25},
|
||||||
|
{"label":"Y", "x":10.5, "y":1.25},
|
||||||
|
{"label":"U", "x":11.5, "y":1.25},
|
||||||
|
{"label":"I", "x":12.5, "y":1.25},
|
||||||
|
{"label":"O", "x":13.5, "y":1.25},
|
||||||
|
{"label":"P", "x":14.75, "y":1.25},
|
||||||
|
{"label":"{", "x":15.75, "y":1.25},
|
||||||
|
{"label":"}", "x":16.75, "y":1.25},
|
||||||
|
{"label":"|", "x":17.75, "y":1.25, "w":1.5},
|
||||||
|
|
||||||
|
{"label":"PgDn", "x":0, "y":2},
|
||||||
|
{"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75},
|
||||||
|
{"label":"A", "x":3.25, "y":2.25},
|
||||||
|
{"label":"S", "x":4.5, "y":2.25},
|
||||||
|
{"label":"D", "x":5.5, "y":2.25},
|
||||||
|
{"label":"F", "x":6.5, "y":2.25},
|
||||||
|
{"label":"G", "x":7.5, "y":2.25},
|
||||||
|
{"label":"H", "x":10.75, "y":2.25},
|
||||||
|
{"label":"J", "x":11.75, "y":2.25},
|
||||||
|
{"label":"K", "x":12.75, "y":2.25},
|
||||||
|
{"label":"L", "x":13.75, "y":2.25},
|
||||||
|
{"label":":", "x":15.25, "y":2.25},
|
||||||
|
{"label":"\"", "x":16.25, "y":2.25},
|
||||||
|
{"label":"Enter", "x":17.25, "y":2.25, "w":2.25},
|
||||||
|
|
||||||
|
{"label":"Shift", "x":1.5, "y":3.25, "w":2.25},
|
||||||
|
{"label":"Z", "x":3.75, "y":3.25},
|
||||||
|
{"label":"X", "x":5, "y":3.25},
|
||||||
|
{"label":"C", "x":6, "y":3.25},
|
||||||
|
{"label":"V", "x":7, "y":3.25},
|
||||||
|
{"label":"B", "x":8, "y":3.25},
|
||||||
|
{"label":"Fn", "x":10.25, "y":3.25},
|
||||||
|
{"label":"N", "x":11.25, "y":3.25},
|
||||||
|
{"label":"M", "x":12.25, "y":3.25},
|
||||||
|
{"label":"<", "x":13.25, "y":3.25},
|
||||||
|
{"label":">", "x":15, "y":3.25},
|
||||||
|
{"label":"?", "x":16, "y":3.25},
|
||||||
|
{"label":"Shift", "x":17, "y":3.25, "w":1.75},
|
||||||
|
{"label":"Fn", "x":18.75, "y":3.25},
|
||||||
|
|
||||||
|
{"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5},
|
||||||
|
{"label":"Alt", "x":5, "y":4.25, "w":1.5},
|
||||||
|
{"label":"Space", "x":6.5, "y":4.25, "w":2},
|
||||||
|
{"label":"Menu", "x":8.5, "y":4.25},
|
||||||
|
{"label":"Space", "x":10.25, "y":4.25, "w":2.75},
|
||||||
|
{"label":"Alt", "x":13, "y":4.25, "w":1.5},
|
||||||
|
{"label":"Ctrl", "x":18, "y":4.25, "w":1.5}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_alice": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0.5, "y":0},
|
||||||
|
{"label":"`", "x":1.75, "y":0.25},
|
||||||
|
{"label":"1", "x":2.75, "y":0.25},
|
||||||
|
{"label":"2", "x":3.75, "y":0},
|
||||||
|
{"label":"3", "x":4.75, "y":0.25},
|
||||||
|
{"label":"4", "x":5.75, "y":0.25},
|
||||||
|
{"label":"5", "x":6.75, "y":0.25},
|
||||||
|
{"label":"6", "x":7.75, "y":0.25},
|
||||||
|
{"label":"7", "x":11, "y":0.25},
|
||||||
|
{"label":"8", "x":12, "y":0.25},
|
||||||
|
{"label":"9", "x":13, "y":0.25},
|
||||||
|
{"label":"0", "x":14, "y":0.25},
|
||||||
|
{"label":"-", "x":15, "y":0},
|
||||||
|
{"label":"=", "x":16, "y":0.25},
|
||||||
|
{"label":"Backspace", "x":17, "y":0.25, "w":2},
|
||||||
|
|
||||||
|
{"label":"PgUp", "x":0.25, "y":1},
|
||||||
|
{"label":"Tab", "x":1.5, "y":1.25, "w":1.5},
|
||||||
|
{"label":"Q", "x":3, "y":1.25},
|
||||||
|
{"label":"W", "x":4.25, "y":1.25},
|
||||||
|
{"label":"E", "x":5.25, "y":1.25},
|
||||||
|
{"label":"R", "x":6.25, "y":1.25},
|
||||||
|
{"label":"T", "x":7.25, "y":1.25},
|
||||||
|
{"label":"Y", "x":10.5, "y":1.25},
|
||||||
|
{"label":"U", "x":11.5, "y":1.25},
|
||||||
|
{"label":"I", "x":12.5, "y":1.25},
|
||||||
|
{"label":"O", "x":13.5, "y":1.25},
|
||||||
|
{"label":"P", "x":14.75, "y":1.25},
|
||||||
|
{"label":"{", "x":15.75, "y":1.25},
|
||||||
|
{"label":"}", "x":16.75, "y":1.25},
|
||||||
|
{"label":"|", "x":17.75, "y":1.25, "w":1.5},
|
||||||
|
|
||||||
|
{"label":"PgDn", "x":0, "y":2},
|
||||||
|
{"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75},
|
||||||
|
{"label":"A", "x":3.25, "y":2.25},
|
||||||
|
{"label":"S", "x":4.5, "y":2.25},
|
||||||
|
{"label":"D", "x":5.5, "y":2.25},
|
||||||
|
{"label":"F", "x":6.5, "y":2.25},
|
||||||
|
{"label":"G", "x":7.5, "y":2.25},
|
||||||
|
{"label":"H", "x":10.75, "y":2.25},
|
||||||
|
{"label":"J", "x":11.75, "y":2.25},
|
||||||
|
{"label":"K", "x":12.75, "y":2.25},
|
||||||
|
{"label":"L", "x":13.75, "y":2.25},
|
||||||
|
{"label":":", "x":15.25, "y":2.25},
|
||||||
|
{"label":"\"", "x":16.25, "y":2.25},
|
||||||
|
{"label":"Enter", "x":17.25, "y":2.25, "w":2.25},
|
||||||
|
|
||||||
|
{"label":"Shift", "x":1.5, "y":3.25, "w":2.25},
|
||||||
|
{"label":"Z", "x":3.75, "y":3.25},
|
||||||
|
{"label":"X", "x":5, "y":3.25},
|
||||||
|
{"label":"C", "x":6, "y":3.25},
|
||||||
|
{"label":"V", "x":7, "y":3.25},
|
||||||
|
{"label":"B", "x":8, "y":3.25},
|
||||||
|
{"label":"Fn", "x":10.25, "y":3.25},
|
||||||
|
{"label":"N", "x":11.25, "y":3.25},
|
||||||
|
{"label":"M", "x":12.25, "y":3.25},
|
||||||
|
{"label":"<", "x":13.25, "y":3.25},
|
||||||
|
{"label":">", "x":15, "y":3.25},
|
||||||
|
{"label":"?", "x":16, "y":3.25},
|
||||||
|
{"label":"Shift", "x":17, "y":3.25, "w":1.75},
|
||||||
|
{"label":"Fn", "x":18.75, "y":3.25},
|
||||||
|
|
||||||
|
{"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5},
|
||||||
|
{"label":"Alt", "x":5, "y":4.25, "w":1.5},
|
||||||
|
{"label":"Space", "x":6.5, "y":4.25, "w":2},
|
||||||
|
{"label":"Menu", "x":8.5, "y":4.25},
|
||||||
|
{"label":"Space", "x":10.25, "y":4.25, "w":2.75},
|
||||||
|
{"label":"Alt", "x":13, "y":4.25, "w":1.5},
|
||||||
|
{"label":"Ctrl", "x":18, "y":4.25, "w":1.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
40
keyboards/edda/keymaps/default/keymap.c
Normal file
40
keyboards/edda/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
Copyright 2021 Martin Arnstad
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _BASE 0
|
||||||
|
#define _FN1 1
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_BASE] = LAYOUT_alice_split_bs(
|
||||||
|
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,
|
||||||
|
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,
|
||||||
|
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,
|
||||||
|
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,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(_FN1), KC_SPC, KC_RALT, KC_RCTL
|
||||||
|
),
|
||||||
|
|
||||||
|
[_FN1] = LAYOUT_alice_split_bs(
|
||||||
|
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,
|
||||||
|
RGB_MOD, _______, _______, KC_UP, _______, _______, _______, RGB_SAI, RGB_HUI, RGB_VAI, _______, _______, _______, _______, _______,
|
||||||
|
RGB_RMOD, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, RGB_SAD, RGB_HUD, RGB_VAD, _______, _______, _______, _______,
|
||||||
|
_______, BL_INC, BL_DEC, BL_TOGG, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, RESET
|
||||||
|
)
|
||||||
|
};
|
53
keyboards/edda/keymaps/via/keymap.c
Normal file
53
keyboards/edda/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
/*
|
||||||
|
Copyright 2021 Martin Arnstad
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_alice_split_bs(
|
||||||
|
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,
|
||||||
|
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,
|
||||||
|
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,
|
||||||
|
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,
|
||||||
|
KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RCTL
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_alice_split_bs(
|
||||||
|
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,
|
||||||
|
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, 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, 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, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[2] = LAYOUT_alice_split_bs(
|
||||||
|
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,
|
||||||
|
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, 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, 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, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
[3] = LAYOUT_alice_split_bs(
|
||||||
|
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,
|
||||||
|
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, 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, 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, KC_TRNS, KC_TRNS
|
||||||
|
)
|
||||||
|
|
||||||
|
};
|
1
keyboards/edda/keymaps/via/rules.mk
Normal file
1
keyboards/edda/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
VIA_ENABLE = yes
|
21
keyboards/edda/readme.md
Normal file
21
keyboards/edda/readme.md
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Edda PCB
|
||||||
|
|
||||||
|
Alice layout PCB with top mounted USB C used in Mekanisk Edda
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [martin](https://github.com/arnstadm)
|
||||||
|
* Hardware Supported: [Edda PCB](https://tastatur.no/collections/forhandsbestilling-1/products/edda-pcb?variant=39481626001453)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make edda:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make edda:default:flash
|
||||||
|
|
||||||
|
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).
|
||||||
|
|
||||||
|
How to enter bootloader (DFU):
|
||||||
|
|
||||||
|
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.
|
||||||
|
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.
|
24
keyboards/edda/rules.mk
Normal file
24
keyboards/edda/rules.mk
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = qmk-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
||||||
|
|
||||||
|
LAYOUTS = alice alice_split_bs
|
Loading…
Reference in a new issue