Add firmware for hardware rev 3 (eepyBoard v1.2)
This commit is contained in:
parent
4b062a125a
commit
f4d59d1f97
2
Makefile
2
Makefile
|
|
@ -4,7 +4,7 @@ QMK_HOME ?= ${HOME}/qmk_firmware
|
|||
# QMK keyboard information (author, keyboard, revision)
|
||||
QMK_KEYBOARD_AUTHOR := binarydiv
|
||||
QMK_KEYBOARD_NAME := eepyboard
|
||||
QMK_KEYBOARD_REV ?= rev2
|
||||
QMK_KEYBOARD_REV ?= rev3
|
||||
|
||||
# Directory structure for QMK keyboard files
|
||||
QMK_KEYBOARD_AUTHOR_DIR := ${QMK_KEYBOARD_AUTHOR}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ Custom ergonomic mechanical keyboard with low-profile (Choc) switches.
|
|||
- 2 pressable rotary encoders (one in the center of the keyboard, one in the upper right)
|
||||
- Compact RP2040 "Pico Mini" controller board in the center
|
||||
|
||||
- **eepyBoard v1.2: Hardware revision 3**
|
||||
- Mostly ortholinear layout with 14 columns (81 keys + rotary encoder)
|
||||
- Bottom row with regular keys, thumb keys and a 1.5u space key
|
||||
- Full F-key row (Esc, F1-F12) and rotary encoder
|
||||
- Compact RP2040 "Pico Mini" controller controller board in upper right corner
|
||||
|
||||
## Repository structure
|
||||
|
||||
- `/layouts`: Keyboard layouts created with the [Keyboard Layout Editor](http://www.keyboard-layout-editor.com)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, OSL(L_CODE), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SEMICOLON, KC_QUOTE, KC_BACKSLASH,
|
||||
_______, KC_LSFT, KC_ESC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RSFT,
|
||||
//[...] [...] [Ctrl] [Super] [Alt] [Code] [Space] [Backspace] [AltGr] [RCtrl] [Del] [Fn] [Menu] [RCtrl]
|
||||
_______, KC_LCTL, KC_LCTL, KC_LGUI, KC_LALT, KC_LGUI, KC_SPACE, KC_BACKSPACE, KC_RALT, KC_ENTER, KC_DELETE, MO(L_FN), KC_APP, KC_RCTL,
|
||||
_______, KC_LCTL, KC_LCTL, KC_LGUI, KC_LALT, OSL(L_CODE), KC_SPACE, KC_BACKSPACE, KC_RALT, KC_ENTER, KC_DELETE, MO(L_FN), KC_APP, KC_RCTL,
|
||||
//[Up] [Left] [Right] [Down] [Enter] (Scroll)
|
||||
KC_UP, KC_LEFT, KC_RIGHT, KC_DOWN, KC_ENTER, _______
|
||||
),
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
# eepyBoard v1.2 / rev3
|
||||
|
||||
This is the firmware for hardware revision 3 of the eepyBoard (v1.2).
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
// Copyright 2025 binaryDiv (@binaryDiv)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
// Lock one-shot keys when tapping them twice
|
||||
#define ONESHOT_TAP_TOGGLE 2
|
||||
|
|
@ -0,0 +1,256 @@
|
|||
{
|
||||
"keyboard_name": "eepyBoard v1.2",
|
||||
"maintainer": "binaryDiv",
|
||||
"manufacturer": "binaryDiv",
|
||||
"url": "https://git.0xbd.space/binaryDiv/eepyBoard",
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"usb": {
|
||||
"device_version": "1.2.0",
|
||||
"vid": "0x1337",
|
||||
"pid": "0xBD32"
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": true,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true,
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"matrix_pins": {
|
||||
"cols": [
|
||||
"GP27",
|
||||
"GP26",
|
||||
"GP25",
|
||||
"GP23",
|
||||
"GP22",
|
||||
"GP21",
|
||||
"GP18",
|
||||
"GP17",
|
||||
"GP13",
|
||||
"GP12",
|
||||
"GP11",
|
||||
"GP10",
|
||||
"GP9",
|
||||
"GP8"
|
||||
],
|
||||
"rows": [
|
||||
"GP28",
|
||||
"GP19",
|
||||
"GP3",
|
||||
"GP2",
|
||||
"GP1",
|
||||
"GP0"
|
||||
]
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "GP6",
|
||||
"pin_b": "GP7",
|
||||
"resolution": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_default": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0, "label": "Esc"},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0, "label": "F1"},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0, "label": "F2"},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0, "label": "F3"},
|
||||
{"matrix": [0, 4], "x": 4, "y": 0, "label": "F4"},
|
||||
{"matrix": [0, 5], "x": 5, "y": 0, "label": "F5"},
|
||||
{"matrix": [0, 6], "x": 6, "y": 0, "label": "F6"},
|
||||
{"matrix": [0, 7], "x": 7, "y": 0, "label": "F7"},
|
||||
{"matrix": [0, 8], "x": 8, "y": 0, "label": "F8"},
|
||||
{"matrix": [0, 9], "x": 9, "y": 0, "label": "F9"},
|
||||
{"matrix": [0, 10], "x": 10, "y": 0, "label": "F10"},
|
||||
{"matrix": [0, 11], "x": 11, "y": 0, "label": "F11"},
|
||||
{"matrix": [0, 12], "x": 12, "y": 0, "label": "F12"},
|
||||
{"matrix": [0, 13], "x": 13.25, "y": 0, "label": "VolCtrl", "encoder": 0},
|
||||
|
||||
{"matrix": [1, 0], "x": 0, "y": 1.25, "label": "~"},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1.25, "label": "1"},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1.25, "label": "2"},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1.25, "label": "3"},
|
||||
{"matrix": [1, 4], "x": 4, "y": 1.25, "label": "4"},
|
||||
{"matrix": [1, 5], "x": 5, "y": 1.25, "label": "5"},
|
||||
{"matrix": [1, 6], "x": 6, "y": 1.25, "label": "6"},
|
||||
{"matrix": [1, 7], "x": 7, "y": 1.25, "label": "7"},
|
||||
{"matrix": [1, 8], "x": 8, "y": 1.25, "label": "8"},
|
||||
{"matrix": [1, 9], "x": 9, "y": 1.25, "label": "9"},
|
||||
{"matrix": [1, 10], "x": 10, "y": 1.25, "label": "0"},
|
||||
{"matrix": [1, 11], "x": 11, "y": 1.25, "label": "-"},
|
||||
{"matrix": [1, 12], "x": 12, "y": 1.25, "label": "="},
|
||||
|
||||
{"matrix": [2, 0], "x": 0, "y": 2.25, "label": "Tab"},
|
||||
{"matrix": [2, 1], "x": 1, "y": 2.25, "label": "Q"},
|
||||
{"matrix": [2, 2], "x": 2, "y": 2.25, "label": "W"},
|
||||
{"matrix": [2, 3], "x": 3, "y": 2.25, "label": "E"},
|
||||
{"matrix": [2, 4], "x": 4, "y": 2.25, "label": "R"},
|
||||
{"matrix": [2, 5], "x": 5, "y": 2.25, "label": "T"},
|
||||
{"matrix": [2, 6], "x": 6, "y": 2.25, "label": "Y"},
|
||||
{"matrix": [2, 7], "x": 7, "y": 2.25, "label": "U"},
|
||||
{"matrix": [2, 8], "x": 8, "y": 2.25, "label": "I"},
|
||||
{"matrix": [2, 9], "x": 9, "y": 2.25, "label": "O"},
|
||||
{"matrix": [2, 10], "x": 10, "y": 2.25, "label": "P"},
|
||||
{"matrix": [2, 11], "x": 11, "y": 2.25, "label": "["},
|
||||
{"matrix": [2, 12], "x": 12, "y": 2.25, "label": "]"},
|
||||
{"matrix": [2, 13], "x": 13, "y": 2.25, "label": "Enter"},
|
||||
|
||||
{"matrix": [3, 0], "x": 0, "y": 3.25, "label": "Enter"},
|
||||
{"matrix": [3, 1], "x": 1, "y": 3.25, "label": "A"},
|
||||
{"matrix": [3, 2], "x": 2, "y": 3.25, "label": "S"},
|
||||
{"matrix": [3, 3], "x": 3, "y": 3.25, "label": "D"},
|
||||
{"matrix": [3, 4], "x": 4, "y": 3.25, "label": "F"},
|
||||
{"matrix": [3, 5], "x": 5, "y": 3.25, "label": "G"},
|
||||
{"matrix": [3, 6], "x": 6, "y": 3.25, "label": "H"},
|
||||
{"matrix": [3, 7], "x": 7, "y": 3.25, "label": "J"},
|
||||
{"matrix": [3, 8], "x": 8, "y": 3.25, "label": "K"},
|
||||
{"matrix": [3, 9], "x": 9, "y": 3.25, "label": "L"},
|
||||
{"matrix": [3, 10], "x": 10, "y": 3.25, "label": ";"},
|
||||
{"matrix": [3, 11], "x": 11, "y": 3.25, "label": "'"},
|
||||
{"matrix": [3, 12], "x": 12, "y": 3.25, "label": "\\"},
|
||||
{"matrix": [3, 13], "x": 13, "y": 3.25, "label": "Del"},
|
||||
|
||||
{"matrix": [4, 0], "x": 0, "y": 4.25, "label": "Shift"},
|
||||
{"matrix": [4, 1], "x": 1, "y": 4.25, "label": "Home"},
|
||||
{"matrix": [4, 2], "x": 2, "y": 4.25, "label": "Z"},
|
||||
{"matrix": [4, 3], "x": 3, "y": 4.25, "label": "X"},
|
||||
{"matrix": [4, 4], "x": 4, "y": 4.25, "label": "C"},
|
||||
{"matrix": [4, 5], "x": 5, "y": 4.25, "label": "V"},
|
||||
{"matrix": [4, 6], "x": 6, "y": 4.25, "label": "B"},
|
||||
{"matrix": [4, 7], "x": 7, "y": 4.25, "label": "N"},
|
||||
{"matrix": [4, 8], "x": 8, "y": 4.25, "label": "M"},
|
||||
{"matrix": [4, 9], "x": 9, "y": 4.25, "label": ","},
|
||||
{"matrix": [4, 10], "x": 10, "y": 4.25, "label": "."},
|
||||
{"matrix": [4, 11], "x": 11, "y": 4.25, "label": "/"},
|
||||
{"matrix": [4, 12], "x": 12, "y": 4.25, "label": "Up"},
|
||||
{"matrix": [4, 13], "x": 13, "y": 4.25, "label": "Shift"},
|
||||
|
||||
{"matrix": [5, 0], "x": 0, "y": 5.25, "label": "Ctrl"},
|
||||
{"matrix": [5, 1], "x": 1, "y": 5.25, "label": "End"},
|
||||
{"matrix": [5, 2], "x": 2, "y": 5.25, "label": "Super"},
|
||||
{"matrix": [5, 3], "x": 3, "y": 5.37, "label": "Alt"},
|
||||
{"matrix": [5, 4], "x": 4, "y": 5.50, "label": "Code"},
|
||||
{"matrix": [5, 5], "x": 5.25, "y": 5.50, "label": "Space", "w": 1.5},
|
||||
{"matrix": [5, 7], "x": 7, "y": 5.50, "label": "Backspace"},
|
||||
{"matrix": [5, 8], "x": 8, "y": 5.37, "label": "AltGr"},
|
||||
{"matrix": [5, 9], "x": 9, "y": 5.25, "label": "Ctrl"},
|
||||
{"matrix": [5, 10], "x": 10, "y": 5.25, "label": "Fn"},
|
||||
{"matrix": [5, 11], "x": 11, "y": 5.25, "label": "Left"},
|
||||
{"matrix": [5, 12], "x": 12, "y": 5.25, "label": "Down"},
|
||||
{"matrix": [5, 13], "x": 13, "y": 5.25, "label": "Right"}
|
||||
]
|
||||
}
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "ws2812",
|
||||
"default": {
|
||||
"animation": "cycle_pinwheel",
|
||||
"speed": 32
|
||||
},
|
||||
"animations": {
|
||||
"cycle_pinwheel": true,
|
||||
"typing_heatmap": true
|
||||
},
|
||||
"max_brightness": 127,
|
||||
"sleep": true,
|
||||
"center_point": [55, 25],
|
||||
"layout": [
|
||||
{"x": 120, "y": 0, "matrix": [0, 12], "flags": 4},
|
||||
{"x": 110, "y": 0, "matrix": [0, 11], "flags": 4},
|
||||
{"x": 100, "y": 0, "matrix": [0, 10], "flags": 4},
|
||||
{"x": 90, "y": 0, "matrix": [0, 9], "flags": 4},
|
||||
{"x": 80, "y": 0, "matrix": [0, 8], "flags": 4},
|
||||
{"x": 70, "y": 0, "matrix": [0, 7], "flags": 4},
|
||||
{"x": 60, "y": 0, "matrix": [0, 6], "flags": 4},
|
||||
{"x": 50, "y": 0, "matrix": [0, 5], "flags": 4},
|
||||
{"x": 40, "y": 0, "matrix": [0, 4], "flags": 4},
|
||||
{"x": 30, "y": 0, "matrix": [0, 3], "flags": 4},
|
||||
{"x": 20, "y": 0, "matrix": [0, 2], "flags": 4},
|
||||
{"x": 10, "y": 0, "matrix": [0, 1], "flags": 4},
|
||||
{"x": 0, "y": 0, "matrix": [0, 0], "flags": 4},
|
||||
|
||||
{"x": 0, "y": 10, "matrix": [1, 0], "flags": 4},
|
||||
{"x": 10, "y": 10, "matrix": [1, 1], "flags": 4},
|
||||
{"x": 20, "y": 10, "matrix": [1, 2], "flags": 4},
|
||||
{"x": 30, "y": 10, "matrix": [1, 3], "flags": 4},
|
||||
{"x": 40, "y": 10, "matrix": [1, 4], "flags": 4},
|
||||
{"x": 50, "y": 10, "matrix": [1, 5], "flags": 4},
|
||||
{"x": 60, "y": 10, "matrix": [1, 6], "flags": 4},
|
||||
{"x": 70, "y": 10, "matrix": [1, 7], "flags": 4},
|
||||
{"x": 80, "y": 10, "matrix": [1, 8], "flags": 4},
|
||||
{"x": 90, "y": 10, "matrix": [1, 9], "flags": 4},
|
||||
{"x": 100, "y": 10, "matrix": [1, 10], "flags": 4},
|
||||
{"x": 110, "y": 10, "matrix": [1, 11], "flags": 4},
|
||||
{"x": 120, "y": 10, "matrix": [1, 12], "flags": 4},
|
||||
|
||||
{"x": 130, "y": 20, "matrix": [2, 13], "flags": 4},
|
||||
{"x": 120, "y": 20, "matrix": [2, 12], "flags": 4},
|
||||
{"x": 110, "y": 20, "matrix": [2, 11], "flags": 4},
|
||||
{"x": 100, "y": 20, "matrix": [2, 10], "flags": 4},
|
||||
{"x": 90, "y": 20, "matrix": [2, 9], "flags": 4},
|
||||
{"x": 80, "y": 20, "matrix": [2, 8], "flags": 4},
|
||||
{"x": 70, "y": 20, "matrix": [2, 7], "flags": 4},
|
||||
{"x": 60, "y": 20, "matrix": [2, 6], "flags": 4},
|
||||
{"x": 50, "y": 20, "matrix": [2, 5], "flags": 4},
|
||||
{"x": 40, "y": 20, "matrix": [2, 4], "flags": 4},
|
||||
{"x": 30, "y": 20, "matrix": [2, 3], "flags": 4},
|
||||
{"x": 20, "y": 20, "matrix": [2, 2], "flags": 4},
|
||||
{"x": 10, "y": 20, "matrix": [2, 1], "flags": 4},
|
||||
{"x": 0, "y": 20, "matrix": [2, 0], "flags": 4},
|
||||
|
||||
{"x": 0, "y": 30, "matrix": [3, 0], "flags": 4},
|
||||
{"x": 10, "y": 30, "matrix": [3, 1], "flags": 4},
|
||||
{"x": 20, "y": 30, "matrix": [3, 2], "flags": 4},
|
||||
{"x": 30, "y": 30, "matrix": [3, 3], "flags": 4},
|
||||
{"x": 40, "y": 30, "matrix": [3, 4], "flags": 4},
|
||||
{"x": 50, "y": 30, "matrix": [3, 5], "flags": 4},
|
||||
{"x": 60, "y": 30, "matrix": [3, 6], "flags": 4},
|
||||
{"x": 70, "y": 30, "matrix": [3, 7], "flags": 4},
|
||||
{"x": 80, "y": 30, "matrix": [3, 8], "flags": 4},
|
||||
{"x": 90, "y": 30, "matrix": [3, 9], "flags": 4},
|
||||
{"x": 100, "y": 30, "matrix": [3, 10], "flags": 4},
|
||||
{"x": 110, "y": 30, "matrix": [3, 11], "flags": 4},
|
||||
{"x": 120, "y": 30, "matrix": [3, 12], "flags": 4},
|
||||
{"x": 130, "y": 30, "matrix": [3, 13], "flags": 4},
|
||||
|
||||
{"x": 130, "y": 40, "matrix": [4, 13], "flags": 4},
|
||||
{"x": 120, "y": 40, "matrix": [4, 12], "flags": 4},
|
||||
{"x": 110, "y": 40, "matrix": [4, 11], "flags": 4},
|
||||
{"x": 100, "y": 40, "matrix": [4, 10], "flags": 4},
|
||||
{"x": 90, "y": 40, "matrix": [4, 9], "flags": 4},
|
||||
{"x": 80, "y": 40, "matrix": [4, 8], "flags": 4},
|
||||
{"x": 70, "y": 40, "matrix": [4, 7], "flags": 4},
|
||||
{"x": 60, "y": 40, "matrix": [4, 6], "flags": 4},
|
||||
{"x": 50, "y": 40, "matrix": [4, 5], "flags": 4},
|
||||
{"x": 40, "y": 40, "matrix": [4, 4], "flags": 4},
|
||||
{"x": 30, "y": 40, "matrix": [4, 3], "flags": 4},
|
||||
{"x": 20, "y": 40, "matrix": [4, 2], "flags": 4},
|
||||
{"x": 10, "y": 40, "matrix": [4, 1], "flags": 4},
|
||||
{"x": 0, "y": 40, "matrix": [4, 0], "flags": 4},
|
||||
|
||||
{"x": 0, "y": 50, "matrix": [5, 0], "flags": 4},
|
||||
{"x": 10, "y": 50, "matrix": [5, 1], "flags": 4},
|
||||
{"x": 21, "y": 51, "matrix": [5, 2], "flags": 4},
|
||||
{"x": 31, "y": 52, "matrix": [5, 3], "flags": 4},
|
||||
{"x": 41, "y": 53, "matrix": [5, 4], "flags": 4},
|
||||
{"x": 55, "y": 55, "matrix": [5, 5], "flags": 4},
|
||||
{"x": 71, "y": 53, "matrix": [5, 7], "flags": 4},
|
||||
{"x": 81, "y": 52, "matrix": [5, 8], "flags": 4},
|
||||
{"x": 91, "y": 51, "matrix": [5, 9], "flags": 4},
|
||||
{"x": 100, "y": 50, "matrix": [5, 10], "flags": 4},
|
||||
{"x": 110, "y": 50, "matrix": [5, 11], "flags": 4},
|
||||
{"x": 120, "y": 50, "matrix": [5, 12], "flags": 4},
|
||||
{"x": 130, "y": 50, "matrix": [5, 13], "flags": 4}
|
||||
]
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "GP29"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,149 @@
|
|||
// Cowpyright 2025 binaryDiv (@binaryDiv)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Define layer names for better readability
|
||||
enum layer_names {
|
||||
// Base layer
|
||||
L_BASE,
|
||||
|
||||
// "Code" key: Moving the cursor around via WASD, etc.
|
||||
L_CODE,
|
||||
|
||||
// Fn / keyboard control layer: Used for keyboard configuration
|
||||
L_FN,
|
||||
};
|
||||
|
||||
// Custom keycodes
|
||||
enum custom_keycodes {
|
||||
// Special characters that require more complicated input
|
||||
MACRO_HEART = SAFE_RANGE,
|
||||
};
|
||||
|
||||
// For keycodes, see QMK docs: https://docs.qmk.fm/keycodes
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// -----------------------------
|
||||
// Layout macro "LAYOUT_default"
|
||||
// -----------------------------
|
||||
//
|
||||
// - 6 rows in total a 14 columns.
|
||||
// - Row 1: Esc, function keys, volume control knob.
|
||||
// - Row 2: Numbers. Last key unused.
|
||||
// - Row 3 to 5: Q-row, A-row, Z-row.
|
||||
// - Row 6: Modifiers, thumb keys, space bar. Key after space bar is unused (space occupies two slots).
|
||||
//
|
||||
// ┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐ ╭──╮
|
||||
// │Es││F1││F2││F3││F4││F5││F6││F7││F8││F9││10││11││12│ ▲Vo▼
|
||||
// └──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘ ╰──╯
|
||||
// ┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐
|
||||
// │~ ││1 ││2 ││3 ││4 ││5 ││6 ││7 ││8 ││9 ││0 ││- ││= │
|
||||
// └──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘
|
||||
// ┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐
|
||||
// │Ta││Q ││W ││E ││R ││T ││Y ││U ││I ││O ││P ││[ ││] ││En│
|
||||
// └──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘
|
||||
// ┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐
|
||||
// │En││A ││S ││D ││F ││G ││H ││J ││K ││L ││; ││' ││\ ││De│
|
||||
// └──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘
|
||||
// ┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐┌──┐
|
||||
// │Sh││Ho││Z ││X ││C ││V ││B ││N ││M ││, ││. ││/ ││Up││Sh│
|
||||
// └──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘└──┘
|
||||
// ┌──┐┌──┐ ┌──┐┌──┐┌──┐┌──┐
|
||||
// │Ct││En│┌──┐┌──┐┌──┐ ┌────┐ ┌──┐┌──┐┌──┐│Fn││Le││Do││Ri│
|
||||
// └──┘└──┘│Su││Al││Co│ │Spac│ │Ba││Al││Ct│└──┘└──┘└──┘└──┘
|
||||
// └──┘└──┘└──┘ └────┘ └──┘└──┘└──┘
|
||||
|
||||
// TODO: Update/finalize KLE layout
|
||||
|
||||
// Base layer
|
||||
[L_BASE] = LAYOUT_default(
|
||||
///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// /////////////
|
||||
//[Esc] [F1] [F2] [F3] [F4] [F5] [F6] [F7] [F8] [F9] [F10] [F11] [F12] (Vol)
|
||||
KC_ESC, 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_MUTE,
|
||||
|
||||
//[`] [1] [2] [3] [4] [5] [6] [7] [8] [9] [0] [-] [=]
|
||||
KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL,
|
||||
|
||||
//[Tab...] [Q,A,Home] [W,S,Z] [E,D,X] [R,F,C] [T,G,V] [Y,H,B] [U,J,N] [I,K,M] [O,L,[,]] [P,[;],[.]] [<[>,',/] [<]>,\,Up] [Enter...]
|
||||
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_ENTER,
|
||||
KC_ENTER, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SEMICOLON, KC_QUOTE, KC_BACKSLASH, KC_DELETE,
|
||||
KC_LSFT, KC_HOME, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_UP, KC_RSFT,
|
||||
|
||||
//[Ctrl] [End] [Super] [Alt] [Code] [______Space______] [Backspace] [AltGr] [RCtrl] [Fn] [Left] [Down] [Right]
|
||||
KC_LCTL, KC_END, KC_LGUI, KC_LALT, MO(L_CODE), KC_SPACE, KC_BACKSPACE, KC_RALT, KC_RCTL, MO(L_FN), KC_LEFT, KC_DOWN, KC_RIGHT
|
||||
),
|
||||
|
||||
// "Code" key layer
|
||||
// Code+F11: Super+Del = Lock screen
|
||||
[L_CODE] = LAYOUT_default(
|
||||
///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// /////////////
|
||||
//[Esc] [F1] [F2] [F3] [F4] [F5] [F6] [F7] [F8] [F9] [F10] [F11] [F12] (Vol)
|
||||
_______, DM_PLY1, DM_PLY2, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, LGUI(KC_DEL), KC_SYSTEM_SLEEP, KC_NO,
|
||||
|
||||
//[`] [1] [2] [3] [4] [5] [6] [7] [8] [9] [0] [-] [=]
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
|
||||
//[Tab...] [Q,A,Home] [W,S,Z] [E,D,X] [R,F,C] [T,G,V] [Y,H,B] [U,J,N] [I,K,M] [O,L,[,]] [P,[;],[.]] [<[>,',/] [<]>,\,Up] [Enter...]
|
||||
_______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, _______, MACRO_HEART, _______, _______, _______, _______, _______, _______, KC_INSERT,
|
||||
_______, KC_PGUP, _______, KC_ESC, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______,
|
||||
|
||||
//[Ctrl] [End] [Super] [Alt] [Code] [______Space______] [Backspace] [AltGr] [RCtrl] [Fn] [Left] [Down] [Right]
|
||||
_______, KC_PGDN, _______, _______, _______, _______, KC_DELETE, _______, _______, _______, KC_HOME, KC_PGDN, KC_END
|
||||
),
|
||||
|
||||
// "Fn" key layer
|
||||
[L_FN] = LAYOUT_default(
|
||||
///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// /////////////
|
||||
//[Esc] [F1] [F2] [F3] [F4] [F5] [F6] [F7] [F8] [F9] [F10] [F11] [F12] (Vol)
|
||||
DM_RSTP, DM_REC1, DM_REC2, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_RGB_MATRIX_TOGGLE,
|
||||
|
||||
//[`] [1] [2] [3] [4] [5] [6] [7] [8] [9] [0] [-] [=]
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAD, RGB_VAI,
|
||||
|
||||
//[Tab...] [Q,A,Home] [W,S,Z] [E,D,X] [R,F,C] [T,G,V] [Y,H,B] [U,J,N] [I,K,M] [O,L,[,]] [P,[;],[.]] [<[>,',/] [<]>,\,Up] [Enter...]
|
||||
_______, _______, _______, _______, QK_REBOOT, _______, _______, _______, _______, OS_TOGG, _______, RGB_SPD, RGB_SPI, QK_BOOTLOADER,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, RGB_TOG, _______,
|
||||
_______, _______, _______, _______, QK_CLEAR_EEPROM, _______, QK_BOOTLOADER, _______, _______, _______, _______, _______, _______, _______,
|
||||
|
||||
//[Ctrl] [End] [Super] [Alt] [Code] [______Space______] [Backspace] [AltGr] [RCtrl] [Fn] [Left] [Down] [Right]
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
// Define mapping for rotary encoder
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
// Base layer: Volume control (press: mute)
|
||||
[L_BASE] = {
|
||||
ENCODER_CCW_CW(KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP)
|
||||
},
|
||||
|
||||
// Code layer: Scroll up/down (press: no action)
|
||||
[L_CODE] = {
|
||||
ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN)
|
||||
},
|
||||
|
||||
// Fn layer: RGB LED brightness control (press: toggle RGB light)
|
||||
[L_FN] = {
|
||||
ENCODER_CCW_CW(RGB_VAD, RGB_VAI)
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
// Define custom keycode handlers
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
// Store the current modifier state in the variable for later reference
|
||||
uint8_t mod_state = get_mods();
|
||||
|
||||
switch (keycode) {
|
||||
case MACRO_HEART:
|
||||
if (record->event.pressed) {
|
||||
// Type a outlined heart via X11 Compose key (with custom mappings)
|
||||
del_mods(MOD_MASK_SHIFT);
|
||||
SEND_STRING(SS_TAP(X_APP) "c3");
|
||||
set_mods(mod_state);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# Enable support for rotary encoder
|
||||
ENCODER_ENABLE = yes
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
|
||||
# Use RP2040-specific driver for WS2812 (PIO-based)
|
||||
WS2812_DRIVER = vendor
|
||||
|
||||
# Enable support for dynamic macros
|
||||
DYNAMIC_MACRO_ENABLE = yes
|
||||
Loading…
Reference in New Issue