diff options
| author | Vicktor Hutama <vicktor.hutama@gmail.com> | 2021-08-11 14:24:34 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 00:24:34 -0700 |
| commit | 02ac0f89c4665f5fc6e57559a8c49d363117fbc0 (patch) | |
| tree | 2526d458f3e836d3f40c2bb725691f22252779d4 | |
| parent | 710d37b3eb68c795065adfd83b5be4668a029ccb (diff) | |
| download | qmk_firmware-02ac0f89c4665f5fc6e57559a8c49d363117fbc0.tar.gz qmk_firmware-02ac0f89c4665f5fc6e57559a8c49d363117fbc0.zip | |
[Keyboard] Add Rune Vaengr Keyboard (#13945)
* initial commit
* fixed layout
* enabled NKRO
* removed qmkbest
* changed the pins and bootloader to the mcu version
* updated readme
* Apply suggestions from code review
thank you @drashna
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
| -rw-r--r-- | keyboards/runes/vaengr/config.h | 147 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/info.json | 72 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/keymaps/default/keymap.c | 56 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/keymaps/default/readme.md | 13 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/keymaps/via/keymap.c | 56 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/readme.md | 23 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/rules.mk | 22 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/vaengr.c | 17 | ||||
| -rw-r--r-- | keyboards/runes/vaengr/vaengr.h | 41 |
10 files changed, 449 insertions, 0 deletions
diff --git a/keyboards/runes/vaengr/config.h b/keyboards/runes/vaengr/config.h new file mode 100644 index 000000000..4f66a4d38 --- /dev/null +++ b/keyboards/runes/vaengr/config.h | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Vicktor | ||
| 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 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x726E | ||
| 24 | #define PRODUCT_ID 0x7661 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Rune | ||
| 27 | #define PRODUCT Vængr | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { C7, E6, D5, B3, B7 } | ||
| 44 | #define MATRIX_COL_PINS { D4, D6, D7, B4, B5, B6, F7, F6, F5, F4, F1, F0 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* | ||
| 51 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 52 | */ | ||
| 53 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 54 | |||
| 55 | //#define LED_NUM_LOCK_PIN B0 | ||
| 56 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 57 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 58 | //#define LED_COMPOSE_PIN B3 | ||
| 59 | //#define LED_KANA_PIN B4 | ||
| 60 | |||
| 61 | // #define BACKLIGHT_PIN | ||
| 62 | // #define BACKLIGHT_LEVELS 3 | ||
| 63 | // #define BACKLIGHT_BREATHING | ||
| 64 | |||
| 65 | #define RGB_DI_PIN D3 | ||
| 66 | // #define RGB_DI_PIN B0 | ||
| 67 | #ifdef RGB_DI_PIN | ||
| 68 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 69 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 70 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 71 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 72 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 73 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 74 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 75 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 76 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 77 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 78 | #define RGBLED_NUM 3 | ||
| 79 | #define RGBLIGHT_HUE_STEP 10 | ||
| 80 | #define RGBLIGHT_SAT_STEP 17 | ||
| 81 | #define RGBLIGHT_VAL_STEP 17 | ||
| 82 | // # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 83 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 84 | /*== customize breathing effect ==*/ | ||
| 85 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 86 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 87 | /*==== use exp() and sin() ====*/ | ||
| 88 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 89 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 90 | #endif | ||
| 91 | |||
| 92 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 93 | #define DEBOUNCE 5 | ||
| 94 | |||
| 95 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 96 | //#define MATRIX_HAS_GHOST | ||
| 97 | |||
| 98 | |||
| 99 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 100 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 101 | */ | ||
| 102 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 103 | |||
| 104 | /* | ||
| 105 | * Force NKRO | ||
| 106 | * | ||
| 107 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 108 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 109 | * makefile for this to work.) | ||
| 110 | * | ||
| 111 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 112 | * until the next keyboard reset. | ||
| 113 | * | ||
| 114 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 115 | * fully operational during normal computer usage. | ||
| 116 | * | ||
| 117 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 118 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 119 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 120 | * power-up. | ||
| 121 | * | ||
| 122 | */ | ||
| 123 | #define FORCE_NKRO | ||
| 124 | |||
| 125 | /* | ||
| 126 | * Feature disable options | ||
| 127 | * These options are also useful to firmware size reduction. | ||
| 128 | */ | ||
| 129 | |||
| 130 | /* disable debug print */ | ||
| 131 | //#define NO_DEBUG | ||
| 132 | |||
| 133 | /* disable print */ | ||
| 134 | //#define NO_PRINT | ||
| 135 | |||
| 136 | /* disable action features */ | ||
| 137 | //#define NO_ACTION_LAYER | ||
| 138 | //#define NO_ACTION_TAPPING | ||
| 139 | //#define NO_ACTION_ONESHOT | ||
| 140 | |||
| 141 | /* disable these deprecated features by default */ | ||
| 142 | #define NO_ACTION_MACRO | ||
| 143 | #define NO_ACTION_FUNCTION | ||
| 144 | |||
| 145 | /* Bootmagic Lite key configuration */ | ||
| 146 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 147 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/runes/vaengr/info.json b/keyboards/runes/vaengr/info.json new file mode 100644 index 000000000..e4f9a4bd3 --- /dev/null +++ b/keyboards/runes/vaengr/info.json | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Runes Vængr", | ||
| 3 | "url": "https://www.runes.id", | ||
| 4 | "maintainer": "Vicktor", | ||
| 5 | "width": 12, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label": "K00", "x": 0, "y": 0}, | ||
| 11 | {"label": "K10", "x": 1, "y": 0}, | ||
| 12 | {"label": "K20", "x": 2, "y": 0}, | ||
| 13 | {"label": "K30", "x": 3, "y": 0}, | ||
| 14 | {"label": "K40", "x": 4, "y": 0}, | ||
| 15 | {"label": "K50", "x": 5, "y": 0}, | ||
| 16 | {"label": "K60", "x": 6, "y": 0}, | ||
| 17 | {"label": "K70", "x": 7, "y": 0}, | ||
| 18 | {"label": "K80", "x": 8, "y": 0}, | ||
| 19 | {"label": "K90", "x": 9, "y": 0}, | ||
| 20 | {"label": "K100", "x": 10, "y": 0}, | ||
| 21 | {"label": "K110", "x": 11, "y": 0}, | ||
| 22 | {"label": "K01", "x": 0, "y": 1}, | ||
| 23 | {"label": "K11", "x": 1, "y": 1}, | ||
| 24 | {"label": "K21", "x": 2, "y": 1}, | ||
| 25 | {"label": "K31", "x": 3, "y": 1}, | ||
| 26 | {"label": "K41", "x": 4, "y": 1}, | ||
| 27 | {"label": "K51", "x": 5, "y": 1}, | ||
| 28 | {"label": "K61", "x": 6, "y": 1}, | ||
| 29 | {"label": "K71", "x": 7, "y": 1}, | ||
| 30 | {"label": "K81", "x": 8, "y": 1}, | ||
| 31 | {"label": "K91", "x": 9, "y": 1}, | ||
| 32 | {"label": "K101", "x": 10, "y": 1}, | ||
| 33 | {"label": "K111", "x": 11, "y": 1}, | ||
| 34 | {"label": "K02", "x": 0, "y": 2}, | ||
| 35 | {"label": "K12", "x": 1, "y": 2}, | ||
| 36 | {"label": "K22", "x": 2, "y": 2}, | ||
| 37 | {"label": "K32", "x": 3, "y": 2}, | ||
| 38 | {"label": "K42", "x": 4, "y": 2}, | ||
| 39 | {"label": "K52", "x": 5, "y": 2}, | ||
| 40 | {"label": "K62", "x": 6, "y": 2}, | ||
| 41 | {"label": "K72", "x": 7, "y": 2}, | ||
| 42 | {"label": "K82", "x": 8, "y": 2}, | ||
| 43 | {"label": "K92", "x": 9, "y": 2}, | ||
| 44 | {"label": "K102", "x": 10, "y": 2}, | ||
| 45 | {"label": "K112", "x": 11, "y": 2}, | ||
| 46 | {"label": "K03", "x": 0, "y": 3}, | ||
| 47 | {"label": "K13", "x": 1, "y": 3}, | ||
| 48 | {"label": "K23", "x": 2, "y": 3}, | ||
| 49 | {"label": "K33", "x": 3, "y": 3}, | ||
| 50 | {"label": "K43", "x": 4, "y": 3}, | ||
| 51 | {"label": "K53", "x": 5, "y": 3}, | ||
| 52 | {"label": "K63", "x": 6, "y": 3}, | ||
| 53 | {"label": "K73", "x": 7, "y": 3}, | ||
| 54 | {"label": "K83", "x": 8, "y": 3}, | ||
| 55 | {"label": "K93", "x": 9, "y": 3}, | ||
| 56 | {"label": "K103", "x": 10, "y": 3}, | ||
| 57 | {"label": "K113", "x": 11, "y": 3}, | ||
| 58 | {"label": "K04", "x": 0, "y": 4}, | ||
| 59 | {"label": "K14", "x": 1, "y": 4}, | ||
| 60 | {"label": "K24", "x": 2, "y": 4}, | ||
| 61 | {"label": "K34", "x": 3, "y": 4}, | ||
| 62 | {"label": "K44", "x": 4, "y": 4}, | ||
| 63 | {"label": "K54", "x": 5, "y": 4, "w":2}, | ||
| 64 | {"label": "K74", "x": 7, "y": 4}, | ||
| 65 | {"label": "K84", "x": 8, "y": 4}, | ||
| 66 | {"label": "K94", "x": 9, "y": 4}, | ||
| 67 | {"label": "K104", "x": 10, "y": 4}, | ||
| 68 | {"label": "K114", "x": 11, "y": 4} | ||
| 69 | ] | ||
| 70 | } | ||
| 71 | } | ||
| 72 | } | ||
diff --git a/keyboards/runes/vaengr/keymaps/default/keymap.c b/keyboards/runes/vaengr/keymaps/default/keymap.c new file mode 100644 index 000000000..5bd2f1219 --- /dev/null +++ b/keyboards/runes/vaengr/keymaps/default/keymap.c | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* Copyright 2021 Vicktor | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _DOUBLE, | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | // /* Base */ | ||
| 28 | |||
| 29 | [_BASE] = LAYOUT( | ||
| 30 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 31 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
| 32 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 33 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT, | ||
| 34 | KC_LCTL, KC_LGUI, KC_LALT, KC_GRV, MO(1), KC_SPC, MO(2), KC_SLSH, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 35 | |||
| 36 | [_LOWER] = LAYOUT( | ||
| 37 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 38 | KC_TRNS, KC_PGUP, KC_HOME, KC_DEL, KC_BSPC, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_MINS, KC_EQL, KC_BSLS, | ||
| 39 | KC_TRNS, KC_PGDN, KC_END, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_PIPE, | ||
| 40 | KC_TRNS, KC_PSCR, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MSTP, KC_MPRV, KC_MNXT, KC_SLCK, KC_PAUS, KC_TRNS, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 42 | |||
| 43 | [_RAISE] = LAYOUT( | ||
| 44 | KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_TRNS, | ||
| 45 | KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS, KC_PMNS, KC_P4, KC_P5, KC_P6, KC_TRNS, | ||
| 46 | KC_TRNS, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_TRNS, KC_PAST, KC_P1, KC_P2, KC_P3, KC_PPLS, | ||
| 47 | KC_TRNS, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_TRNS, KC_PSLS, KC_P0, KC_PDOT, KC_PEQL, KC_PENT, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 49 | |||
| 50 | [_DOUBLE] = LAYOUT( | ||
| 51 | KC_SLEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, RGB_MODE_FORWARD, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 56 | }; | ||
diff --git a/keyboards/runes/vaengr/keymaps/default/readme.md b/keyboards/runes/vaengr/keymaps/default/readme.md new file mode 100644 index 000000000..3a5339cfa --- /dev/null +++ b/keyboards/runes/vaengr/keymaps/default/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # The default keymap for Vængr | ||
| 2 | |||
| 3 | Layer 0 (Default): | ||
| 4 |  | ||
| 5 | |||
| 6 | Layer 1: | ||
| 7 |  | ||
| 8 | |||
| 9 | Layer 2: | ||
| 10 |  | ||
| 11 | |||
| 12 | Layer 3: | ||
| 13 |  \ No newline at end of file | ||
diff --git a/keyboards/runes/vaengr/keymaps/via/keymap.c b/keyboards/runes/vaengr/keymaps/via/keymap.c new file mode 100644 index 000000000..5bd2f1219 --- /dev/null +++ b/keyboards/runes/vaengr/keymaps/via/keymap.c | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* Copyright 2021 Vicktor | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _DOUBLE, | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | // /* Base */ | ||
| 28 | |||
| 29 | [_BASE] = LAYOUT( | ||
| 30 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 31 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
| 32 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 33 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT, | ||
| 34 | KC_LCTL, KC_LGUI, KC_LALT, KC_GRV, MO(1), KC_SPC, MO(2), KC_SLSH, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 35 | |||
| 36 | [_LOWER] = LAYOUT( | ||
| 37 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 38 | KC_TRNS, KC_PGUP, KC_HOME, KC_DEL, KC_BSPC, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_MINS, KC_EQL, KC_BSLS, | ||
| 39 | KC_TRNS, KC_PGDN, KC_END, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_PIPE, | ||
| 40 | KC_TRNS, KC_PSCR, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MSTP, KC_MPRV, KC_MNXT, KC_SLCK, KC_PAUS, KC_TRNS, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 42 | |||
| 43 | [_RAISE] = LAYOUT( | ||
| 44 | KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, KC_NLCK, KC_P7, KC_P8, KC_P9, KC_TRNS, | ||
| 45 | KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS, KC_PMNS, KC_P4, KC_P5, KC_P6, KC_TRNS, | ||
| 46 | KC_TRNS, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_TRNS, KC_PAST, KC_P1, KC_P2, KC_P3, KC_PPLS, | ||
| 47 | KC_TRNS, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_TRNS, KC_PSLS, KC_P0, KC_PDOT, KC_PEQL, KC_PENT, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 49 | |||
| 50 | [_DOUBLE] = LAYOUT( | ||
| 51 | KC_SLEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, RGB_MODE_FORWARD, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 56 | }; | ||
diff --git a/keyboards/runes/vaengr/keymaps/via/rules.mk b/keyboards/runes/vaengr/keymaps/via/rules.mk new file mode 100644 index 000000000..43061db1d --- /dev/null +++ b/keyboards/runes/vaengr/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/runes/vaengr/readme.md b/keyboards/runes/vaengr/readme.md new file mode 100644 index 000000000..54e3b8017 --- /dev/null +++ b/keyboards/runes/vaengr/readme.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # Vængr | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Vængr [/ˈwɛ̃ːŋɡr̩/] (Old Norse: Wings) | ||
| 6 | |||
| 7 | 5x12 hotswap ortholinear keyboard based on atmega32u4 mcu. | ||
| 8 | |||
| 9 | * Keyboard Maintainer: [Vicktor](https://github.com/vicktorhu) | ||
| 10 | * Hardware Supported: atmega32u4 | ||
| 11 | * Hardware Availability: [Website](https://www.runes.id) -- Currently Indonesia only | ||
| 12 | |||
| 13 | Reset the keyboard with **Lower** + **Upper** + **Del** or by pressing the reset button on the PCB. | ||
| 14 | |||
| 15 | Make example for this keyboard (after setting up your build environment): | ||
| 16 | |||
| 17 | make vaengr:default | ||
| 18 | |||
| 19 | Flashing example for this keyboard: | ||
| 20 | |||
| 21 | make vaengr:default:flash | ||
| 22 | |||
| 23 | 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/runes/vaengr/rules.mk b/keyboards/runes/vaengr/rules.mk new file mode 100644 index 000000000..27ffc1f24 --- /dev/null +++ b/keyboards/runes/vaengr/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-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 = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/runes/vaengr/vaengr.c b/keyboards/runes/vaengr/vaengr.c new file mode 100644 index 000000000..7bea62149 --- /dev/null +++ b/keyboards/runes/vaengr/vaengr.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 Vicktor | ||
| 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 "vaengr.h" | ||
diff --git a/keyboards/runes/vaengr/vaengr.h b/keyboards/runes/vaengr/vaengr.h new file mode 100644 index 000000000..985867a93 --- /dev/null +++ b/keyboards/runes/vaengr/vaengr.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2021 Vicktor | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT( \ | ||
| 30 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K010, K011, \ | ||
| 31 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K110, K111, \ | ||
| 32 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K210, K211, \ | ||
| 33 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K310, K311, \ | ||
| 34 | K40, K41, K42, K43, K44, K45, K47, K48, K49, K410, K411 \ | ||
| 35 | ) { \ | ||
| 36 | {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K010, K011 }, \ | ||
| 37 | {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K110, K111 }, \ | ||
| 38 | {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K210, K211 }, \ | ||
| 39 | {K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K310, K311 }, \ | ||
| 40 | {K40, K41, K42, K43, K44, K45, KC_NO, K47, K48, K49, K410, K411 } \ | ||
| 41 | } | ||
