Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 141 additions & 0 deletions keyboards/handwired/keynet/keymaps/default/keymap.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could convert this to a keymap.json file, and support both the encoder map and the custom macro (for double 0).

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions keyboards/handwired/keynet/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
352 changes: 352 additions & 0 deletions keyboards/handwired/keynet/keymaps/light/keymap.c

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions keyboards/handwired/keynet/keymaps/light/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
397 changes: 397 additions & 0 deletions keyboards/handwired/keynet/keymaps/max/keymap.c
Copy link
Contributor

@lesshonor lesshonor Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a collaborator, but as it stands I don't think the code in this keymap will be considered acceptable for inclusion within the main QMK repository.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions keyboards/handwired/keynet/keymaps/max/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
28 changes: 28 additions & 0 deletions keyboards/handwired/keynet/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# KeyNet

![keynet](https://i.imgur.com/SHSUUh8.jpeg)

![keynet](https://i.imgur.com/XOig87S.jpeg)

Keynet is a split, ortholinear (column-staggered) keyboard powered by an Atmega32u4 microcontroller. It uses the Caterina bootloader and features support for rotary encoders, mouse keys, and NKRO. The firmware is configured for a split matrix layout with a custom hand-swap configuration.

* Keyboard Maintainer: [Arthur Frangyan](https://github.com/ArthurFrangyan)
* Addtional Information: [Github](https://github.com/ArthurFrangyan/KeyNet)

Make example for this keyboard (after setting up your build environment):

qmk compile -kb handwired/keynet/rev1 -km default

Flashing example for this keyboard for left and right sides:

qmk flash -kb handwired/keynet/rev1 -km default -bl avrdude-split-left
qmk flash -kb handwired/keynet/rev1 -km default -bl avrdude-split-right

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 2 ways:

* **Keycode in layout**: Press the key mapped to `QK_BOOT`, Menu + (0,0) key
* **Physical reset button**: A small hole on the front of the keyboard provides access to the reset (RST) contact. Touching it with a conductive object such as a needle or SIM ejector tool while holding the object is enough to trigger a reset.
6 changes: 6 additions & 0 deletions keyboards/handwired/keynet/rev1/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2026 Arthur Frangyan <https://github.com/ArthurFrangyan>
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define EE_HANDS
162 changes: 162 additions & 0 deletions keyboards/handwired/keynet/rev1/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"keyboard_name": "Keynet",
"manufacturer": "Arthur Frangyan",
"url": "https://github.com/ArthurFrangyan/KeyNet",
"maintainer": "Arthur Frangyan",
"usb": {
"shared_endpoint": {
"keyboard": true
},
"device_version": "1.0.0",
"vid": "0xFEED",
"pid": "0x6406"
},
"development_board": "promicro",
"matrix_pins": {
"cols": ["F5", "C6", "B6", "D7", "E6", "D0", "B4", "D1"],
"rows": ["F4", "F6", "B1", "B2", "B5"]
},
"diode_direction": "COL2ROW",
"split": {
"enabled": true,
"serial": {
"pin": "D3"
},
"transport": {
"watchdog": true,
"watchdog_timeout": 800
},
"usb_detect": {
"enabled": true,
"timeout": 500
},
"matrix_pins": {
"right": {
"cols": ["F7", "D0", "B1", "D7", "B2", "D1", "D4", "B4"],
"rows": ["C6", "E6", "B5", "B3", "B6"]
}
},
"encoder": {
"right": {
"rotary": [
{
"pin_a": "F6",
"pin_b": "F5",
"resolution": 2
}
]
}
}
},
"encoder": {
"rotary": [
{
"pin_a": "B3",
"pin_b": "F7",
"resolution": 2
}
]
},
"features": {
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"swap_hands": true
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 1},
{"matrix": [0, 1], "x": 1, "y": 0.85},
{"matrix": [0, 2], "x": 2, "y": 0.65},
{"matrix": [0, 3], "x": 3, "y": 0.15},
{"matrix": [0, 4], "x": 4, "y": 0},
{"matrix": [0, 5], "x": 5, "y": 0.3},
{"matrix": [0, 6], "x": 6, "y": 0.5},
{"matrix": [0, 7], "x": 7, "y": 0.7},

{"matrix": [5, 7], "x": 11, "y": 0.7},
{"matrix": [5, 6], "x": 12, "y": 0.5},
{"matrix": [5, 5], "x": 13, "y": 0.3},
{"matrix": [5, 4], "x": 14, "y": 0},
{"matrix": [5, 3], "x": 15, "y": 0.15},
{"matrix": [5, 2], "x": 16, "y": 0.65},
{"matrix": [5, 1], "x": 17, "y": 0.85},
{"matrix": [5, 0], "x": 18, "y": 1},


{"matrix": [1, 0], "x": 0, "y": 2},
{"matrix": [1, 1], "x": 1, "y": 1.85},
{"matrix": [1, 2], "x": 2, "y": 1.65},
{"matrix": [1, 3], "x": 3, "y": 1.15},
{"matrix": [1, 4], "x": 4, "y": 1},
{"matrix": [1, 5], "x": 5, "y": 1.3},
{"matrix": [1, 6], "x": 6, "y": 1.5},
{"matrix": [1, 7], "x": 7, "y": 1.7},

{"matrix": [6, 7], "x": 11, "y": 1.7},
{"matrix": [6, 6], "x": 12, "y": 1.5},
{"matrix": [6, 5], "x": 13, "y": 1.3},
{"matrix": [6, 4], "x": 14, "y": 1},
{"matrix": [6, 3], "x": 15, "y": 1.15},
{"matrix": [6, 2], "x": 16, "y": 1.65},
{"matrix": [6, 1], "x": 17, "y": 1.85},
{"matrix": [6, 0], "x": 18, "y": 2},


{"matrix": [2, 0], "x": 0, "y": 3},
{"matrix": [2, 1], "x": 1, "y": 2.85},
{"matrix": [2, 2], "x": 2, "y": 2.65},
{"matrix": [2, 3], "x": 3, "y": 2.15},
{"matrix": [2, 4], "x": 4, "y": 2},
{"matrix": [2, 5], "x": 5, "y": 2.3},
{"matrix": [2, 6], "x": 6, "y": 2.5},

{"matrix": [7, 6], "x": 12, "y": 2.5},
{"matrix": [7, 5], "x": 13, "y": 2.3},
{"matrix": [7, 4], "x": 14, "y": 2},
{"matrix": [7, 3], "x": 15, "y": 2.15},
{"matrix": [7, 2], "x": 16, "y": 2.65},
{"matrix": [7, 1], "x": 17, "y": 2.85},
{"matrix": [7, 0], "x": 18, "y": 3},


{"matrix": [3, 0], "x": 0, "y": 4},
{"matrix": [3, 1], "x": 1, "y": 3.85},
{"matrix": [3, 2], "x": 2, "y": 3.65},
{"matrix": [3, 3], "x": 3, "y": 3.15},
{"matrix": [3, 4], "x": 4, "y": 3},
{"matrix": [3, 5], "x": 5, "y": 3.3},
{"matrix": [3, 6], "x": 6, "y": 3.5},
{"matrix": [3, 7], "x": 7, "y": 3.7},
{"matrix": [4, 7], "x": 8, "y": 3.7},

{"matrix": [9, 6], "x": 10, "y": 3.7},
{"matrix": [8, 7], "x": 11, "y": 3.7},
{"matrix": [8, 6], "x": 12, "y": 3.5},
{"matrix": [8, 5], "x": 13, "y": 3.3},
{"matrix": [8, 4], "x": 14, "y": 3},
{"matrix": [8, 3], "x": 15, "y": 3.15},
{"matrix": [8, 2], "x": 16, "y": 3.65},
{"matrix": [8, 1], "x": 17, "y": 3.85},
{"matrix": [8, 0], "x": 18, "y": 4},


{"matrix": [4, 0], "x": 3, "y": 4.15},
{"matrix": [4, 1], "x": 4, "y": 4},
{"matrix": [4, 3], "x": 5, "y": 4.3},
{"matrix": [4, 4], "x": 6, "y": 4.5},
{"matrix": [4, 5], "x": 7, "y": 4.7},
{"matrix": [4, 6], "x": 8, "y": 4.95},

{"matrix": [9, 5], "x": 10, "y": 4.95},
{"matrix": [9, 4], "x": 11, "y": 4.7},
{"matrix": [9, 3], "x": 12, "y": 4.5},
{"matrix": [9, 2], "x": 13, "y": 4.3},
{"matrix": [9, 1], "x": 14, "y": 4},
{"matrix": [9, 0], "x": 15, "y": 4.15}
]
}
}
}
27 changes: 27 additions & 0 deletions keyboards/handwired/keynet/rev1/rev1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2026 Arthur Frangyan <https://github.com/ArthurFrangyan>
// SPDX-License-Identifier: GPL-2.0-or-later

#include "quantum.h"

#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
// swap-hands action needs a matrix to define the swap
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
/* Left hand, matrix positions */
{{0,5}, {1,5}, {2,5}, {3,5}, {4,5}, {5,5}, {6,5}, {7,5}},
{{0,6}, {1,6}, {2,6}, {3,6}, {4,6}, {5,6}, {6,6}, {7,6}},
{{0,7}, {1,7}, {2,7}, {3,7}, {4,7}, {5,7}, {6,7}, {7,7}},
{{0,8}, {1,8}, {2,8}, {3,8}, {4,8}, {5,8}, {6,8}, {7,8}},
{{0,9}, {1,9}, {7,9}, {2,9}, {3,9}, {4,9}, {5,9}, {6,9}},
/* Right hand, matrix positions */
{{0,0}, {1,0}, {2,0}, {3,0}, {4,0}, {5,0}, {6,0}, {7,0}},
{{0,1}, {1,1}, {2,1}, {3,1}, {4,1}, {5,1}, {6,1}, {7,1}},
{{0,2}, {1,2}, {2,2}, {3,2}, {4,2}, {5,2}, {6,2}, {7,2}},
{{0,3}, {1,3}, {2,3}, {3,3}, {4,3}, {5,3}, {6,3}, {7,3}},
{{0,4}, {1,4}, {3,4}, {4,4}, {5,4}, {6,4}, {7,4}, {1,4}},
};

#ifdef ENCODER_MAP_ENABLE
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = { 1, 0 };
#endif
#endif