summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2024-04-04 21:05:45 -0400
committerKjetil Orbekk <kj@orbekk.com>2024-04-04 21:11:59 -0400
commit5b2da95a6fd98db7aec1b3105d91f97ed2fdfbce (patch)
tree3752c1e398eea74609fe318b8608db8e66bdf636
parent071fa5b21fc1a67922aebd714174da380be19909 (diff)
Dactyl qmk layout
-rw-r--r--.envrc1
-rw-r--r--keyboards/orbekk_dactyl/config.h40
-rw-r--r--keyboards/orbekk_dactyl/info.json81
-rw-r--r--keyboards/orbekk_dactyl/keymaps/default/keymap.c100
-rw-r--r--keyboards/orbekk_dactyl/keymaps/default/layout.h19
-rw-r--r--keyboards/orbekk_dactyl/readme.md29
-rw-r--r--keyboards/orbekk_dactyl/rules.mk3
7 files changed, 273 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000000..1d953f4bd7
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use nix
diff --git a/keyboards/orbekk_dactyl/config.h b/keyboards/orbekk_dactyl/config.h
new file mode 100644
index 0000000000..cb82ae5022
--- /dev/null
+++ b/keyboards/orbekk_dactyl/config.h
@@ -0,0 +1,40 @@
+// Copyright 2023 KJ Orbekk (@orbekk)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+/*
+ * 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
+#define SERIAL_USART_FULL_DUPLEX //Enable full duplex operation mode.
+#define SERIAL_USART_TX_PIN GP0
+#define SERIAL_USART_RX_PIN GP1
+
+#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
+#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
+
+#define MASTER_LEFT
+
+// Don't send keyboard macros too fast.
+#define TAP_CODE_DELAY 12
+
+#define ACHORDION_STREAK
+
+#define TAPPING_TERM_MS 200
+#define PERMISSIVE_HOLD
+
+#define TRI_LAYER_LOWER_LAYER 4 // LOW
+#define TRI_LAYER_UPPER_LAYER 5 // RAISE
+#define TRI_LAYER_ADJUST_LAYER 7 // FN
diff --git a/keyboards/orbekk_dactyl/info.json b/keyboards/orbekk_dactyl/info.json
new file mode 100644
index 0000000000..52306be242
--- /dev/null
+++ b/keyboards/orbekk_dactyl/info.json
@@ -0,0 +1,81 @@
+{
+ "manufacturer": "KJ Orbekk",
+ "keyboard_name": "orbekk_dactyl",
+ "maintainer": "orbekk",
+ "bootloader": "rp2040",
+ "diode_direction": "COL2ROW",
+ "features": {
+ "bootmagic": true,
+ "command": false,
+ "console": false,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true
+ },
+ "matrix_pins": {
+ # Right
+ #"cols": ["GP5" "GP6" "GP7" "GP8" "GP9"],
+ # Left
+ "cols": ["GP4" "GP6" "GP7" "GP8" "GP9"],
+ "rows": ["GP21" "GP23" "GP20" "GP22"]
+ },
+ "split": {
+ "enabled": true
+ }
+ "processor": "RP2040",
+ "url": "",
+ "usb": {
+ "device_version": "1.0.0",
+ "pid": "0x0000",
+ "vid": "0xFEED"
+ },
+ "layouts": {
+ "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": [0, 4], "x": 4, "y": 0},
+
+ {"matrix": [4, 4], "x": 5, "y": 0},
+ {"matrix": [4, 3], "x": 6, "y": 0},
+ {"matrix": [4, 2], "x": 7, "y": 0},
+ {"matrix": [4, 1], "x": 8, "y": 0},
+ {"matrix": [4, 0], "x": 9, "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": [1, 4], "x": 4, "y": 1},
+
+ {"matrix": [5, 4], "x": 5, "y": 1},
+ {"matrix": [5, 3], "x": 6, "y": 1},
+ {"matrix": [5, 2], "x": 7, "y": 1},
+ {"matrix": [5, 1], "x": 8, "y": 1},
+ {"matrix": [5, 0], "x": 9, "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},
+ {"matrix": [2, 4], "x": 4, "y": 2},
+
+ {"matrix": [6, 4], "x": 5, "y": 2},
+ {"matrix": [6, 3], "x": 6, "y": 2},
+ {"matrix": [6, 2], "x": 7, "y": 2},
+ {"matrix": [6, 1], "x": 8, "y": 2},
+ {"matrix": [6, 0], "x": 9, "y": 2},
+
+ {"matrix": [3, 1], "x": 0, "y": 3},
+ {"matrix": [3, 3], "x": 1, "y": 3},
+ {"matrix": [3, 4], "x": 2, "y": 3}
+
+ {"matrix": [7, 4], "x": 3, "y": 3},
+ {"matrix": [7, 3], "x": 4, "y": 3},
+ {"matrix": [7, 1], "x": 4, "y": 3}
+ ]
+ }
+ }
+}
diff --git a/keyboards/orbekk_dactyl/keymaps/default/keymap.c b/keyboards/orbekk_dactyl/keymaps/default/keymap.c
new file mode 100644
index 0000000000..586dfbfaa1
--- /dev/null
+++ b/keyboards/orbekk_dactyl/keymaps/default/keymap.c
@@ -0,0 +1,100 @@
+#include QMK_KEYBOARD_H
+#include "layout.h"
+
+// Based on:
+// https://github.com/getreuer/qmk-keymap/blob/main/keymap.c
+
+enum layers {
+ GR, // Graphite
+ DV, // Dvorak
+ QW, // Qwerty (intended for typing in dvorak mode)
+ GAMING,
+ LOW,
+ RAISE,
+ NAV,
+ FN,
+};
+
+#define HL_1(kc) LGUI_T(kc)
+#define HL_2(kc) LALT_T(kc)
+#define HL_3(kc) LCTL_T(kc)
+#define HL_4(kc) LSFT_T(kc)
+#define HR_1(kc) LGUI_T(kc)
+#define HR_2(kc) LALT_T(kc)
+#define HR_3(kc) LCTL_T(kc)
+#define HR_4(kc) LSFT_T(kc)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [GR] = LAYOUT_LR(
+ KC_B, KC_L, KC_D, KC_W, KC_Z,
+ HL_1(KC_N), HL_2(KC_R), HL_3(KC_T), HL_4(KC_S), KC_G,
+ KC_Q, KC_X, KC_M, KC_C, KC_V,
+ TL_LOWR, LT(NAV, KC_SPC),
+
+ KC_QUOT, KC_F, KC_O, KC_U, KC_J,
+ KC_Y, HR_4(KC_H), HR_3(KC_A), HR_2(KC_E), HR_1(KC_I),
+ KC_K, KC_P, KC_DOT, KC_MINUS, KC_SLASH,
+ KC_LSFT, TL_UPPR
+ ),
+
+ [DV] = LAYOUT_LR(
+ KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y,
+ HL_1(KC_A), HL_2(KC_O), HL_3(KC_E), HL_4(KC_U), KC_I,
+ KC_SCLN, KC_Q, KC_J, KC_K, KC_X,
+ KC_TRNS, KC_TRNS,
+
+ KC_F, KC_G, KC_C, KC_R, KC_L,
+ KC_D, HR_4(KC_H), HR_3(KC_T), HR_2(KC_N), HR_1(KC_S),
+ KC_B, KC_M, KC_W, KC_V, KC_Z,
+ KC_TRNS, KC_TRNS
+ ),
+
+ [LOW] = LAYOUT_LR(
+ KC_EXLM, KC_AT, KC_HASH, KC_DOLLAR, KC_PERCENT,
+ KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, KC_BACKSLASH,
+ KC_GRAVE, KC_TILDE, KC_TAB, KC_ESC, KC_PIPE,
+ KC_TRNS, KC_TRNS,
+
+ KC_CIRC, KC_AMPERSAND, KC_ASTERISK, KC_LPRN, KC_RPRN,
+ KC_SLASH, KC_UNDERSCORE, KC_PLUS, KC_LCBR, KC_RCBR,
+ KC_QUESTION, KC_MINUS, KC_EQUAL, KC_LBRC, KC_RBRC,
+ KC_TRNS, KC_TRNS
+ ),
+
+ [RAISE] = LAYOUT_LR(
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+
+ KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_BSPC, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI,
+ KC_DEL, KC_ENTER, KC_COMMA, KC_SEMICOLON, KC_COLON,
+ KC_TRNS, KC_TRNS
+ ),
+
+ [FN] = LAYOUT_LR(
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
+ KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+
+ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_TRNS, TO(GR), TO(DV), TO(QW), TO(GAMING),
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT,
+ KC_TRNS, KC_TRNS
+ ),
+
+ [NAV] = LAYOUT_LR(
+ KC_BTN4, KC_BTN3, KC_UP, KC_BTN1, KC_BTN2,
+ KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGUP,
+ KC_HOME, KC_WH_D, KC_WH_U, KC_END, KC_PGDN,
+ KC_TRNS, KC_TRNS,
+
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS
+ ),
+
+};
diff --git a/keyboards/orbekk_dactyl/keymaps/default/layout.h b/keyboards/orbekk_dactyl/keymaps/default/layout.h
new file mode 100644
index 0000000000..cb5fea86d6
--- /dev/null
+++ b/keyboards/orbekk_dactyl/keymaps/default/layout.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include QMK_KEYBOARD_H
+
+#define LAYOUT_LR( \
+LA0, LA1, LA2, LA3, LA4, \
+LB0, LB1, LB2, LB3, LB4, \
+LC0, LC1, LC2, LC3, LC4, \
+LT0, LT1, \
+RA0, RA1, RA2, RA3, RA4, \
+RB0, RB1, RB2, RB3, RB4, \
+RC0, RC1, RC2, RC3, RC4, \
+RT0, RT1 \
+) LAYOUT( \
+LA0, LA1, LA2, LA3, LA4, RA0, RA1, RA2, RA3, RA4, \
+LB0, LB1, LB2, LB3, LB4, RB0, RB1, RB2, RB3, RB4, \
+LC0, LC1, LC2, LC3, LC4, RC0, RC1, RC2, RC3, RC4, \
+LT0, LT1, KC_NO, KC_NO, RT0, RT1 \
+)
diff --git a/keyboards/orbekk_dactyl/readme.md b/keyboards/orbekk_dactyl/readme.md
new file mode 100644
index 0000000000..9a72c9bc5b
--- /dev/null
+++ b/keyboards/orbekk_dactyl/readme.md
@@ -0,0 +1,29 @@
+# orbekk_dactyl
+
+https://docs.qmk.fm/#/porting_your_keyboard_to_qmk
+
+![orbekk_dactyl](imgur.com image replace me!)
+
+*A short description of the keyboard/project*
+
+* Keyboard Maintainer: [KJ Orbekk](https://github.com/orbekk)
+* Hardware Supported: *The PCBs, controllers supported*
+* Hardware Availability: *Links to where you can find this hardware*
+
+Make example for this keyboard (after setting up your build environment):
+
+ make orbekk_dactyl:default
+
+Flashing example for this keyboard:
+
+ make orbekk_dactyl: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).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/keyboards/orbekk_dactyl/rules.mk b/keyboards/orbekk_dactyl/rules.mk
new file mode 100644
index 0000000000..ebbd33e000
--- /dev/null
+++ b/keyboards/orbekk_dactyl/rules.mk
@@ -0,0 +1,3 @@
+# This file intentionally left blank
+SERIAL_DRIVER = vendor
+TRI_LAYER_ENABLE = yes