forked from forks/qmk_firmware
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
34fec2c07d
|
@ -1 +0,0 @@
|
||||||
#include "3x4.h"
|
|
|
@ -1,12 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "quantum.h"
|
|
||||||
#define LAYOUT( \
|
|
||||||
K00, K01, K02, K03, \
|
|
||||||
K10, K11, K12, K13, \
|
|
||||||
K20, K21, K22, K23 \
|
|
||||||
) { \
|
|
||||||
{K00, K01, K02, K03}, \
|
|
||||||
{K10, K11, K12, K13}, \
|
|
||||||
{K20, K21, K22, K23} \
|
|
||||||
}
|
|
|
@ -1,70 +0,0 @@
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "config_common.h"
|
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
|
||||||
#define VENDOR_ID 0x4273 // "Bs" - Boardsource
|
|
||||||
#define PRODUCT_ID 0x0304 // 3x4
|
|
||||||
#define DEVICE_VER 0x0000
|
|
||||||
#define MANUFACTURER Boardsource
|
|
||||||
#define PRODUCT 3x4
|
|
||||||
|
|
||||||
/* key matrix size */
|
|
||||||
#define MATRIX_ROWS 3
|
|
||||||
#define MATRIX_COLS 4
|
|
||||||
|
|
||||||
#define MATRIX_ROW_PINS {F7, F6, F5}
|
|
||||||
#define MATRIX_COL_PINS {B6, B2, B3, B1}
|
|
||||||
|
|
||||||
#define DIODE_DIRECTION COL2ROW
|
|
||||||
|
|
||||||
#define DEBOUNCE 5
|
|
||||||
|
|
||||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
|
||||||
#define LOCKING_SUPPORT_ENABLE
|
|
||||||
/* Locking resynchronize hack */
|
|
||||||
#define LOCKING_RESYNC_ENABLE
|
|
||||||
|
|
||||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
|
||||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
|
||||||
*/
|
|
||||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Force NKRO
|
|
||||||
*
|
|
||||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
|
||||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
|
||||||
* makefile for this to work.)
|
|
||||||
*
|
|
||||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
|
||||||
* until the next keyboard reset.
|
|
||||||
*
|
|
||||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
|
||||||
* fully operational during normal computer usage.
|
|
||||||
*
|
|
||||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
|
||||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
|
||||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
|
||||||
* power-up.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
//#define FORCE_NKRO
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Feature disable options
|
|
||||||
* These options are also useful to firmware size reduction.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* disable debug print */
|
|
||||||
//#define NO_DEBUG
|
|
||||||
|
|
||||||
/* disable print */
|
|
||||||
//#define NO_PRINT
|
|
||||||
|
|
||||||
/* disable action features */
|
|
||||||
//#define NO_ACTION_LAYER
|
|
||||||
//#define NO_ACTION_TAPPING
|
|
||||||
//#define NO_ACTION_ONESHOT
|
|
|
@ -1,27 +1,40 @@
|
||||||
{
|
{
|
||||||
"keyboard_name": "boardsource 4x3",
|
"manufacturer": "Boardsource",
|
||||||
"url": "https://boardsource.xyz",
|
"keyboard_name": "3x4",
|
||||||
"maintainer": "boardsource",
|
"maintainer": "waffle87",
|
||||||
"layouts": {
|
"development_board": "promicro",
|
||||||
|
"diode_direction": "COL2ROW",
|
||||||
"LAYOUT": {
|
"features": {
|
||||||
|
"bootmagic": true,
|
||||||
"layout": [
|
"extrakey": true,
|
||||||
{ "label": "K01", "x": 0, "y": 0 },
|
"mousekey": true
|
||||||
{ "label": "K02", "x": 1, "y": 0 },
|
},
|
||||||
{ "label": "K03", "x": 2, "y": 0 },
|
"matrix_pins": {
|
||||||
{ "label": "K04", "x": 3, "y": 0 },
|
"cols": ["B6", "B2", "B3", "B1"],
|
||||||
|
"rows": ["F7", "F6", "F5"]
|
||||||
{ "label": "K05", "x": 0, "y": 1 },
|
},
|
||||||
{ "label": "K06", "x": 1, "y": 1 },
|
"url": "https://boardsource.xyz/store/5ecc2008eee64242946c98c1",
|
||||||
{ "label": "K07", "x": 2, "y": 1 },
|
"usb": {
|
||||||
{ "label": "K08", "x": 3, "y": 1 },
|
"device_version": "1.0.0",
|
||||||
|
"pid": "0x0304",
|
||||||
{ "label": "K09", "x": 0, "y": 2 },
|
"vid": "0x4273"
|
||||||
{ "label": "K10", "x": 1, "y": 2 },
|
},
|
||||||
{ "label": "K11", "x": 2, "y": 2 },
|
"layouts": {
|
||||||
{ "label": "K12", "x": 3, "y": 2 }
|
"LAYOUT": {
|
||||||
]
|
"layout": [
|
||||||
}
|
{ "matrix": [0, 0], "x": 0, "y": 0 },
|
||||||
|
{ "matrix": [0, 1], "x": 1, "y": 0 },
|
||||||
|
{ "matrix": [0, 2], "x": 2, "y": 0 },
|
||||||
|
{ "matrix": [0, 3], "x": 3, "y": 0 },
|
||||||
|
{ "matrix": [1, 0], "x": 0, "y": 1 },
|
||||||
|
{ "matrix": [1, 1], "x": 1, "y": 1 },
|
||||||
|
{ "matrix": [1, 2], "x": 2, "y": 1 },
|
||||||
|
{ "matrix": [1, 3], "x": 3, "y": 1 },
|
||||||
|
{ "matrix": [2, 0], "x": 0, "y": 2 },
|
||||||
|
{ "matrix": [2, 1], "x": 1, "y": 2 },
|
||||||
|
{ "matrix": [2, 2], "x": 2, "y": 2 },
|
||||||
|
{ "matrix": [2, 3], "x": 3, "y": 2 }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,16 @@
|
||||||
|
// Copyright 2022 @waffle87
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
enum layers {
|
|
||||||
_MAIN,
|
|
||||||
_RAISE,
|
|
||||||
_LOWER,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Readability keycodes
|
|
||||||
#define LOWER MO(_LOWER)
|
|
||||||
#define RAISE MO(_RAISE)
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
[_MAIN] = LAYOUT(
|
KC_0, KC_1, KC_4, KC_7,
|
||||||
KC_0, KC_1, KC_4, KC_7,
|
KC_ENT, KC_2, KC_5, KC_8,
|
||||||
KC_ENT, KC_2, KC_5, KC_8,
|
MO(1), KC_3, KC_6, KC_9
|
||||||
RAISE, KC_3, KC_6, KC_9
|
|
||||||
),
|
),
|
||||||
[_RAISE] = LAYOUT(
|
[1] = LAYOUT(
|
||||||
_______, _______, _______, _______,
|
_______, _______, _______, _______,
|
||||||
_______, _______, _______, _______,
|
_______, _______, _______, _______,
|
||||||
_______, _______, _______, QK_BOOT
|
_______, _______, _______, QK_BOOT
|
||||||
)
|
)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,25 +1,26 @@
|
||||||
|
// Copyright 2022 @gwillad
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
LAYOUT(
|
KC_0, KC_1, KC_4, KC_7,
|
||||||
KC_0, KC_1, KC_4, KC_7,
|
KC_ENT, KC_2, KC_5, KC_8,
|
||||||
KC_ENT, KC_2, KC_5, KC_8,
|
MO(1), KC_3, KC_6, KC_9
|
||||||
MO(1), KC_3, KC_6, KC_9
|
),
|
||||||
),
|
[1] = LAYOUT(
|
||||||
LAYOUT(
|
_______, _______, _______, _______,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
_______, _______, _______, _______,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
_______, _______, _______, QK_BOOT
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT
|
),
|
||||||
),
|
[2] = LAYOUT(
|
||||||
LAYOUT(
|
_______, _______, _______, _______,
|
||||||
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(
|
||||||
LAYOUT(
|
_______, _______, _______, _______,
|
||||||
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,5 +0,0 @@
|
||||||
# The via keymap for boardsource 3x4 macropad
|
|
||||||
|
|
||||||
This folder contains the [VIA](https://caniusevia.com/) configuration for the boardsource 3x4 macropad
|
|
||||||
|
|
||||||
Maintained by: [gwillad](https://github.com/gwillad)
|
|
|
@ -1,17 +1 @@
|
||||||
# MCU name
|
# This file intentionally left blank
|
||||||
MCU = atmega32u4
|
|
||||||
|
|
||||||
# Bootloader selection
|
|
||||||
BOOTLOADER = caterina
|
|
||||||
|
|
||||||
# Build Options
|
|
||||||
# change yes to no to disable
|
|
||||||
#
|
|
||||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
||||||
CONSOLE_ENABLE = yes # Console for debug
|
|
||||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
|
||||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
|
||||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
|
||||||
AUDIO_ENABLE = no # Audio output
|
|
||||||
|
|
101
keyboards/runes/skjoldr/config.h
Normal file
101
keyboards/runes/skjoldr/config.h
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
/*
|
||||||
|
Copyright 2021 Vicktor
|
||||||
|
|
||||||
|
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 0x726E
|
||||||
|
#define PRODUCT_ID 0x736B
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Runes
|
||||||
|
#define PRODUCT Skjöldr
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 14
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define MATRIX_ROW_PINS { D6, D7, B4, B5, B0 }
|
||||||
|
#define MATRIX_COL_PINS { B7, D0, D1, D2, D3, B3, E6, D5, F7, F6, F5, F4, F1, F0 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
|
||||||
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||||
|
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||||
|
*/
|
||||||
|
//#define GRAVE_ESC_CTRL_OVERRIDE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Force NKRO
|
||||||
|
*
|
||||||
|
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||||
|
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||||
|
* makefile for this to work.)
|
||||||
|
*
|
||||||
|
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||||
|
* until the next keyboard reset.
|
||||||
|
*
|
||||||
|
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||||
|
* fully operational during normal computer usage.
|
||||||
|
*
|
||||||
|
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||||
|
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||||
|
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||||
|
* power-up.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define FORCE_NKRO
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Feature disable options
|
||||||
|
* These options are also useful to firmware size reduction.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
//#define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
//#define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
|
||||||
|
/* Bootmagic Lite key configuration */
|
||||||
|
//#define BOOTMAGIC_LITE_ROW 0
|
||||||
|
//#define BOOTMAGIC_LITE_COLUMN 0
|
74
keyboards/runes/skjoldr/info.json
Normal file
74
keyboards/runes/skjoldr/info.json
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
{
|
||||||
|
"keyboard_name": "Runes Skjöldr",
|
||||||
|
"url": "https://www.runes.id",
|
||||||
|
"maintainer": "Vicktor",
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label": "K00", "x": 0, "y": 0},
|
||||||
|
{"label": "K10", "x": 1, "y": 0},
|
||||||
|
{"label": "K20", "x": 2, "y": 0},
|
||||||
|
{"label": "K30", "x": 3, "y": 0},
|
||||||
|
{"label": "K40", "x": 4, "y": 0},
|
||||||
|
{"label": "K50", "x": 5, "y": 0},
|
||||||
|
{"label": "K60", "x": 6, "y": 0},
|
||||||
|
{"label": "K70", "x": 7, "y": 0},
|
||||||
|
{"label": "K80", "x": 8, "y": 0},
|
||||||
|
{"label": "K90", "x": 9, "y": 0},
|
||||||
|
{"label": "K100", "x": 10, "y": 0},
|
||||||
|
{"label": "K110", "x": 11, "y": 0},
|
||||||
|
{"label": "K120", "x": 12, "y": 0},
|
||||||
|
{"label": "K130", "x": 13, "y": 0},
|
||||||
|
{"label": "K01", "x": 0, "y": 1},
|
||||||
|
{"label": "K11", "x": 1, "y": 1},
|
||||||
|
{"label": "K21", "x": 2, "y": 1},
|
||||||
|
{"label": "K31", "x": 3, "y": 1},
|
||||||
|
{"label": "K41", "x": 4, "y": 1},
|
||||||
|
{"label": "K51", "x": 5, "y": 1},
|
||||||
|
{"label": "K61", "x": 6, "y": 1},
|
||||||
|
{"label": "K71", "x": 7, "y": 1},
|
||||||
|
{"label": "K81", "x": 8, "y": 1},
|
||||||
|
{"label": "K91", "x": 9, "y": 1},
|
||||||
|
{"label": "K101", "x": 10, "y": 1},
|
||||||
|
{"label": "K111", "x": 11, "y": 1},
|
||||||
|
{"label": "K121", "x": 12, "y": 1},
|
||||||
|
{"label": "K131", "x": 13, "y": 1},
|
||||||
|
{"label": "K02", "x": 0, "y": 2},
|
||||||
|
{"label": "K12", "x": 1, "y": 2},
|
||||||
|
{"label": "K22", "x": 2, "y": 2},
|
||||||
|
{"label": "K32", "x": 3, "y": 2},
|
||||||
|
{"label": "K42", "x": 4, "y": 2},
|
||||||
|
{"label": "K52", "x": 5, "y": 2},
|
||||||
|
{"label": "K62", "x": 6, "y": 2},
|
||||||
|
{"label": "K72", "x": 7, "y": 2},
|
||||||
|
{"label": "K82", "x": 8, "y": 2},
|
||||||
|
{"label": "K92", "x": 9, "y": 2},
|
||||||
|
{"label": "K102", "x": 10, "y": 2},
|
||||||
|
{"label": "K112", "x": 11, "y": 2},
|
||||||
|
{"label": "K122", "x": 12, "y": 2},
|
||||||
|
{"label": "K03", "x": 0, "y": 3},
|
||||||
|
{"label": "K13", "x": 1, "y": 3},
|
||||||
|
{"label": "K23", "x": 2, "y": 3},
|
||||||
|
{"label": "K33", "x": 3, "y": 3},
|
||||||
|
{"label": "K43", "x": 4, "y": 3},
|
||||||
|
{"label": "K53", "x": 5, "y": 3},
|
||||||
|
{"label": "K63", "x": 6, "y": 3},
|
||||||
|
{"label": "K73", "x": 7, "y": 3},
|
||||||
|
{"label": "K83", "x": 8, "y": 3},
|
||||||
|
{"label": "K93", "x": 9, "y": 3},
|
||||||
|
{"label": "K103", "x": 10, "y": 3},
|
||||||
|
{"label": "K113", "x": 12, "y": 3},
|
||||||
|
{"label": "K123", "x": 13, "y": 3},
|
||||||
|
{"label": "K04", "x": 0, "y": 4},
|
||||||
|
{"label": "K14", "x": 1, "y": 4},
|
||||||
|
{"label": "K24", "x": 2, "y": 4},
|
||||||
|
{"label": "K34", "x": 5, "y": 4},
|
||||||
|
{"label": "K44", "x": 9, "y": 4},
|
||||||
|
{"label": "K54", "x": 10, "y": 4},
|
||||||
|
{"label": "K64", "x": 11, "y": 4},
|
||||||
|
{"label": "K74", "x": 12, "y": 4},
|
||||||
|
{"label": "K84", "x": 13, "y": 4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
54
keyboards/runes/skjoldr/keymaps/default/keymap.c
Normal file
54
keyboards/runes/skjoldr/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
/* Copyright 2021 Vicktor
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names {
|
||||||
|
_BASE,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_DOUBLE,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_BASE] = LAYOUT(
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BSPC,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LEFT_BRACKET, KC_RIGHT_BRACKET, KC_BACKSLASH,
|
||||||
|
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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_DEL,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[_LOWER] = LAYOUT(
|
||||||
|
KC_GRAVE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, QK_BOOTLOADER,
|
||||||
|
KC_TRNS, KC_PGUP, KC_HOME, KC_INS, KC_SCRL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_PGDN, KC_END, KC_PAUSE, KC_NUM, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_PSCR, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MSTP, KC_MPRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLEP,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[_RAISE] = LAYOUT(
|
||||||
|
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, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[_DOUBLE] = LAYOUT(
|
||||||
|
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/runes/skjoldr/keymaps/default/readme.md
Normal file
1
keyboards/runes/skjoldr/keymaps/default/readme.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# The default keymap for Skjoldr
|
54
keyboards/runes/skjoldr/keymaps/via/keymap.c
Normal file
54
keyboards/runes/skjoldr/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
/* Copyright 2021 Vicktor
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
enum layer_names {
|
||||||
|
_BASE,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_DOUBLE,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_BASE] = LAYOUT(
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BSPC,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LEFT_BRACKET, KC_RIGHT_BRACKET, KC_BACKSLASH,
|
||||||
|
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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_DEL,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), MO(1), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
[_LOWER] = LAYOUT(
|
||||||
|
KC_GRAVE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, QK_BOOTLOADER,
|
||||||
|
KC_TRNS, KC_PGUP, KC_HOME, KC_INS, KC_SCRL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_PGDN, KC_END, KC_PAUSE, KC_NUM, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_PSCR, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPLY, KC_MSTP, KC_MPRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLEP,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[_RAISE] = LAYOUT(
|
||||||
|
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, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[_DOUBLE] = LAYOUT(
|
||||||
|
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
keyboards/runes/skjoldr/keymaps/via/rules.mk
Normal file
2
keyboards/runes/skjoldr/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
VIA_ENABLE = yes
|
||||||
|
LTO_ENABLE = yes
|
23
keyboards/runes/skjoldr/readme.md
Normal file
23
keyboards/runes/skjoldr/readme.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# Skjöldr
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Skjöldr [/ˈskjɒldr̩/] (Old Norse: Shield)
|
||||||
|
|
||||||
|
60% keyboard with arrow keys based on atmega32u4 mcu.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [Vicktor](https://github.com/vicktorhu)
|
||||||
|
* Hardware Supported: atmega32u4
|
||||||
|
* Hardware Availability: [Website](https://www.runes.id) -- Currently Indonesia only
|
||||||
|
|
||||||
|
Reset the keyboard with **FN** + **Backspace** or by pressing the reset button on the PCB.
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make runes/skjoldr:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make runes/skjoldr: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).
|
18
keyboards/runes/skjoldr/rules.mk
Normal file
18
keyboards/runes/skjoldr/rules.mk
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
17
keyboards/runes/skjoldr/skjoldr.c
Normal file
17
keyboards/runes/skjoldr/skjoldr.c
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/* Copyright 2021 Vicktor
|
||||||
|
*
|
||||||
|
* 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 "skjoldr.h"
|
41
keyboards/runes/skjoldr/skjoldr.h
Normal file
41
keyboards/runes/skjoldr/skjoldr.h
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
/* Copyright 2021 Vicktor
|
||||||
|
*
|
||||||
|
* 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"
|
||||||
|
|
||||||
|
/* This is a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
#define LAYOUT( \
|
||||||
|
K00, K10, K20, K30, K40, K50, K60, K70, K80, K90, KA0, KB0, KC0, KD0, \
|
||||||
|
K01, K11, K21, K31, K41, K51, K61, K71, K81, K91, KA1, KB1, KC1, KD1, \
|
||||||
|
K02, K12, K22, K32, K42, K52, K62, K72, K82, K92, KA2, KB2, KC2, \
|
||||||
|
K03, K13, K23, K33, K43, K53, K63, K73, K83, K93, KA3, KC3, KD3, \
|
||||||
|
K04, K14, K24, K54, K94, KA4, KB4, KC4, KD4 \
|
||||||
|
) { \
|
||||||
|
{K00, K10, K20, K30, K40, K50, K60, K70, K80, K90, KA0, KB0, KC0, KD0 }, \
|
||||||
|
{K01, K11, K21, K31, K41, K51, K61, K71, K81, K91, KA1, KB1, KC1, KD1 }, \
|
||||||
|
{K02, K12, K22, K32, K42, K52, K62, K72, K82, K92, KA2, KB2, KC2, KC_NO }, \
|
||||||
|
{K03, K13, K23, K33, K43, K53, K63, K73, K83, K93, KA3, KC_NO, KC3, KD3 }, \
|
||||||
|
{K04, K14, K24, KC_NO, KC_NO, K54, KC_NO, KC_NO, KC_NO, K94, KA4, KB4, KC4, KD4 } \
|
||||||
|
}
|
Loading…
Reference in a new issue