From f4d59d1f973bee61cfefeda026c361026b9ed099 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Sat, 16 Aug 2025 17:07:57 +0200 Subject: [PATCH 1/2] Add firmware for hardware rev 3 (eepyBoard v1.2) --- Makefile | 2 +- README.md | 6 + .../eepyboard/rev2/keymaps/default/keymap.c | 2 +- .../binarydiv/eepyboard/rev3/README.md | 3 + .../binarydiv/eepyboard/rev3/config.h | 7 + .../binarydiv/eepyboard/rev3/info.json | 256 ++++++++++++++++++ .../eepyboard/rev3/keymaps/default/keymap.c | 149 ++++++++++ .../binarydiv/eepyboard/rev3/rules.mk | 9 + 8 files changed, 432 insertions(+), 2 deletions(-) create mode 100644 qmk_keyboards/binarydiv/eepyboard/rev3/README.md create mode 100644 qmk_keyboards/binarydiv/eepyboard/rev3/config.h create mode 100644 qmk_keyboards/binarydiv/eepyboard/rev3/info.json create mode 100644 qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c create mode 100644 qmk_keyboards/binarydiv/eepyboard/rev3/rules.mk diff --git a/Makefile b/Makefile index 638a801..d1c3c10 100644 --- a/Makefile +++ b/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} diff --git a/README.md b/README.md index eb18cc5..f9fde8b 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/qmk_keyboards/binarydiv/eepyboard/rev2/keymaps/default/keymap.c b/qmk_keyboards/binarydiv/eepyboard/rev2/keymaps/default/keymap.c index a4db448..2c6777d 100644 --- a/qmk_keyboards/binarydiv/eepyboard/rev2/keymaps/default/keymap.c +++ b/qmk_keyboards/binarydiv/eepyboard/rev2/keymaps/default/keymap.c @@ -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, _______ ), diff --git a/qmk_keyboards/binarydiv/eepyboard/rev3/README.md b/qmk_keyboards/binarydiv/eepyboard/rev3/README.md new file mode 100644 index 0000000..ee5e9c3 --- /dev/null +++ b/qmk_keyboards/binarydiv/eepyboard/rev3/README.md @@ -0,0 +1,3 @@ +# eepyBoard v1.2 / rev3 + +This is the firmware for hardware revision 3 of the eepyBoard (v1.2). diff --git a/qmk_keyboards/binarydiv/eepyboard/rev3/config.h b/qmk_keyboards/binarydiv/eepyboard/rev3/config.h new file mode 100644 index 0000000..0ff0b76 --- /dev/null +++ b/qmk_keyboards/binarydiv/eepyboard/rev3/config.h @@ -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 diff --git a/qmk_keyboards/binarydiv/eepyboard/rev3/info.json b/qmk_keyboards/binarydiv/eepyboard/rev3/info.json new file mode 100644 index 0000000..53f002a --- /dev/null +++ b/qmk_keyboards/binarydiv/eepyboard/rev3/info.json @@ -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" + } +} diff --git a/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c b/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c new file mode 100644 index 0000000..5f15c6c --- /dev/null +++ b/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c @@ -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; +} diff --git a/qmk_keyboards/binarydiv/eepyboard/rev3/rules.mk b/qmk_keyboards/binarydiv/eepyboard/rev3/rules.mk new file mode 100644 index 0000000..2c841ca --- /dev/null +++ b/qmk_keyboards/binarydiv/eepyboard/rev3/rules.mk @@ -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 From eaec7cfd111957e1d8ae723c309a53b9094c1c66 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Sat, 16 Aug 2025 17:42:09 +0200 Subject: [PATCH 2/2] Add KLE layout for hardware rev 3 (eepyBoard v1.2) --- layouts/eepyboard-v1-2.json | 379 ++++++++++++++++++ .../eepyboard/rev3/keymaps/default/keymap.c | 2 - 2 files changed, 379 insertions(+), 2 deletions(-) create mode 100644 layouts/eepyboard-v1-2.json diff --git a/layouts/eepyboard-v1-2.json b/layouts/eepyboard-v1-2.json new file mode 100644 index 0000000..8c32fca --- /dev/null +++ b/layouts/eepyboard-v1-2.json @@ -0,0 +1,379 @@ +[ + [ + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000\n#cc00ff", + "fa": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1 + ] + }, + "Esc\n\n\n\n\n\n\n\n\n\nRecord Stop", + { + "fa": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 1 + ] + }, + "F1\n\n\n\n\n\n\n\n\nMacro1\nRecord", + "F2\n\n\n\n\n\n\n\n\nMacro2\nRecord", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "F3", + "F4", + "F5", + "F6", + "F7", + "F8", + "F9", + "F10\n\n\n\n\n\n\n\n\nPrtScr", + "F11\n\n\n\n\n\n\n\n\nLock", + "F12\n\n\n\n\n\n\n\n\nSleep", + { + "x": 0.25, + "c": "#ffffff", + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000\n#cc00ff", + "w": 1.125, + "h": 1.125 + }, + "Vol -/+\n\n\n\n\n\n\n\n\nScroll ↑ ↓\nRGB bright" + ], + [ + { + "y": 0.25, + "c": "#cccccc", + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "~\n`", + "!\n1", + "@\n2", + "#\n3", + "$\n4", + "%\n5", + "^\n6", + "&\n7", + "*\n8", + "(\n9", + ")\n0", + { + "t": "#000000\n\n\n#cc00ff\n\n\n\n\n\n#ff0000\n#cc00ff", + "fa": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 1 + ] + }, + "_\n-\n\nRGB bright-", + { + "t": "#000000\n\n\n#cc00ff\n\n\n\n\n\n#ff0000" + }, + "+\n=\n\nRGB bright+" + ], + [ + { + "t": "#000000" + }, + "Tab", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "Q\n\n\n\n\n\n\n\n\nHome", + { + "f": 3 + }, + "W\n\n\n\n\n\n\n\n\n↑", + "E\n\n\n\n\n\n\n\n\nEnd", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000\n#cc00ff" + }, + "R\n\n\n\n\n\n\n\n\nPgUp\nReboot", + { + "t": "#000000" + }, + "T", + "Y", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "U", + "I", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000\n#cc00ff" + }, + "O\n\n\n\n\n\n\n\n\n\n1-shot toggle", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "P", + { + "t": "#000000\n\n\n#cc00ff" + }, + "{\n[\n\nRGB speed-", + "}\n]\n\nRGB speed+", + { + "t": "#000000\n\n\n\n\n\n\n\n\n\n#cc00ff" + }, + "Enter\n\n\n\n\n\n\n\n\n\nBoot-loader" + ], + [ + { + "t": "#000000" + }, + "Enter", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000", + "f": 3 + }, + "A\n\n\n\n\n\n\n\n\n←", + { + "f": 3 + }, + "S\n\n\n\n\n\n\n\n\n↓", + { + "f": 3 + }, + "D\n\n\n\n\n\n\n\n\n→", + "F\n\n\n\n\n\n\n\n\nPgDn", + { + "t": "#000000" + }, + "G", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000", + "fa": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + "H\n\n\n\n\n\n\n\n\n♡", + "J", + "K", + "L", + ":\n;", + { + "t": "#000000\n\n\n#cc00ff" + }, + "\"\n'\n\nRGB mode", + "|\n\\\n\nRGB toggle", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000", + "fa": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 2 + ] + }, + "Del\n\n\n\n\n\n\n\n\nIns" + ], + [ + { + "t": "#000000" + }, + "Shift", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "Home\n\n\n\n\n\n\n\n\nPgUp", + "Z", + "X\n\n\n\n\n\n\n\n\nEsc", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000\n#cc00ff", + "fa": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 2, + 1 + ] + }, + "C\n\n\n\n\n\n\n\n\n\nClear EEPROM", + { + "t": "#000000" + }, + "V", + { + "t": "#000000\n\n\n\n\n\n\n\n\n\n#cc00ff" + }, + "B\n\n\n\n\n\n\n\n\n\nBoot-loader", + { + "t": "#000000" + }, + "N", + "M", + "<\n,", + { + "t": "#000000\n\n\n\n\n\n\n\n\n\n#ff0000" + }, + ">\n.", + "?\n/", + { + "t": "#000000\n#ff0000", + "a": 5, + "f2": 2 + }, + "\nPgUp\n\n\n\n\n↑", + { + "t": "#000000\n\n\n\n\n\n\n\n\n\n#ff0000", + "a": 4 + }, + "Shift" + ], + [ + { + "t": "#000000" + }, + "Ctrl", + { + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000" + }, + "End\n\n\n\n\n\n\n\n\nPgDn", + { + "x": 9, + "t": "#000000\n#ff0000", + "a": 5, + "f2": 2 + }, + "\nHome\n\n\n\n\n←", + { + "f2": 2 + }, + "\nPgDn\n\n\n\n\n↓", + { + "f2": 2 + }, + "\nEnd\n\n\n\n\n→" + ], + [ + { + "y": -0.6500000000000004, + "x": 5.25, + "t": "#000000", + "w": 1.5 + }, + "Space" + ], + [ + { + "rx": 11.5, + "ry": 26, + "y": -20.75, + "x": -1.5, + "t": "#cc00ff\n\n\n\n\n\n\n\n\n\n#ff0000", + "a": 4 + }, + "Fn" + ], + [ + { + "r": 3, + "rx": 1.5, + "y": -20.75, + "x": -0.5, + "t": "#000000" + }, + "Super" + ], + [ + { + "r": 6, + "y": -1, + "x": -0.5 + }, + "Alt" + ], + [ + { + "r": 9, + "y": -1, + "x": -0.5, + "t": "#ff0000" + }, + "Code" + ], + [ + { + "r": 12, + "y": -1, + "x": -0.5, + "t": "#000000", + "a": 7, + "d": true + }, + "" + ], + [ + { + "r": -9, + "rx": 10.5, + "y": -20.75, + "x": -0.5, + "t": "#000000\n\n\n\n\n\n\n\n\n#ff0000", + "a": 4 + }, + "Bksp\n\n\n\n\n\n\n\n\nDel" + ], + [ + { + "r": -6, + "y": -1, + "x": -0.5, + "t": "#000000" + }, + "AltGr" + ], + [ + { + "r": -3, + "y": -1, + "x": -0.5 + }, + "Ctrl" + ] +] \ No newline at end of file diff --git a/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c b/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c index 5f15c6c..833de62 100644 --- a/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c +++ b/qmk_keyboards/binarydiv/eepyboard/rev3/keymaps/default/keymap.c @@ -53,8 +53,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { // └──┘└──┘│Su││Al││Co│ │Spac│ │Ba││Al││Ct│└──┘└──┘└──┘└──┘ // └──┘└──┘└──┘ └────┘ └──┘└──┘└──┘ - // TODO: Update/finalize KLE layout - // Base layer [L_BASE] = LAYOUT_default( ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// ///////////// /////////////