forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added matrix transforms and physical layouts for three typical configurations. * Tweaked default keymap to be more immediately useful for ZMK and more closely resemble the default keymaps of non-ZMK firmware. * Board-specific Kconfig settings migrated to main shield file, so they will be exposed to end-users through the setup script. * Tidied formatting and shortened overlong layer labels. * Aligned encoder configuration with current standards. * Corrected default number of RGB LEDs. * Enabled OLED by default in a less authoritarian way.
- Loading branch information
1 parent
11537eb
commit 7dfc6ab
Showing
8 changed files
with
264 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/* | ||
* Copyright (c) 2024 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
chosen { | ||
zmk,physical-layout = &all_1u_layout; | ||
}; | ||
|
||
all_1u_layout: keymap_layout_0 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Default"; | ||
|
||
transform = <&all_1u_transform>; | ||
|
||
keys // w h x y rot rx ry | ||
= <&key_physical_attrs 100 100 100 0 0 0 0> | ||
, <&key_physical_attrs 100 100 200 0 0 0 0> | ||
, <&key_physical_attrs 100 100 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 0 0 0 0> | ||
, <&key_physical_attrs 100 100 100 100 0 0 0> | ||
, <&key_physical_attrs 100 100 200 100 0 0 0> | ||
, <&key_physical_attrs 100 100 300 100 0 0 0> | ||
, <&key_physical_attrs 100 100 400 100 0 0 0> | ||
, <&key_physical_attrs 100 100 100 200 0 0 0> | ||
, <&key_physical_attrs 100 100 200 200 0 0 0> | ||
, <&key_physical_attrs 100 100 300 200 0 0 0> | ||
, <&key_physical_attrs 100 100 400 200 0 0 0> | ||
, <&key_physical_attrs 100 100 0 275 0 0 0> | ||
, <&key_physical_attrs 100 100 100 300 0 0 0> | ||
, <&key_physical_attrs 100 100 200 300 0 0 0> | ||
, <&key_physical_attrs 100 100 300 300 0 0 0> | ||
, <&key_physical_attrs 100 100 400 300 0 0 0> | ||
, <&key_physical_attrs 100 100 0 400 0 0 0> | ||
, <&key_physical_attrs 100 100 100 400 0 0 0> | ||
, <&key_physical_attrs 100 100 200 400 0 0 0> | ||
, <&key_physical_attrs 100 100 300 400 0 0 0> | ||
, <&key_physical_attrs 100 100 400 400 0 0 0> | ||
, <&key_physical_attrs 100 100 0 500 0 0 0> | ||
, <&key_physical_attrs 100 100 100 500 0 0 0> | ||
, <&key_physical_attrs 100 100 200 500 0 0 0> | ||
, <&key_physical_attrs 100 100 300 500 0 0 0> | ||
, <&key_physical_attrs 100 100 400 500 0 0 0> | ||
, <&key_physical_attrs 100 100 100 700 0 0 0> | ||
, <&key_physical_attrs 100 100 200 700 0 0 0> | ||
, <&key_physical_attrs 100 100 300 700 0 0 0> | ||
; | ||
|
||
}; | ||
|
||
right_numpad_layout: keymap_layout_1 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Right Numpad"; | ||
|
||
transform = <&right_numpad_transform>; | ||
|
||
keys // w h x y rot rx ry | ||
= <&key_physical_attrs 100 100 100 0 0 0 0> | ||
, <&key_physical_attrs 100 100 200 0 0 0 0> | ||
, <&key_physical_attrs 100 100 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 0 0 0 0> | ||
, <&key_physical_attrs 100 100 100 100 0 0 0> | ||
, <&key_physical_attrs 100 100 200 100 0 0 0> | ||
, <&key_physical_attrs 100 100 300 100 0 0 0> | ||
, <&key_physical_attrs 100 100 400 100 0 0 0> | ||
, <&key_physical_attrs 100 200 100 200 0 0 0> | ||
, <&key_physical_attrs 100 100 200 200 0 0 0> | ||
, <&key_physical_attrs 100 100 300 200 0 0 0> | ||
, <&key_physical_attrs 100 100 400 200 0 0 0> | ||
, <&key_physical_attrs 100 100 0 275 0 0 0> | ||
, <&key_physical_attrs 100 100 200 300 0 0 0> | ||
, <&key_physical_attrs 100 100 300 300 0 0 0> | ||
, <&key_physical_attrs 100 100 400 300 0 0 0> | ||
, <&key_physical_attrs 100 100 0 400 0 0 0> | ||
, <&key_physical_attrs 100 200 100 400 0 0 0> | ||
, <&key_physical_attrs 100 100 200 400 0 0 0> | ||
, <&key_physical_attrs 100 100 300 400 0 0 0> | ||
, <&key_physical_attrs 100 100 400 400 0 0 0> | ||
, <&key_physical_attrs 100 100 0 500 0 0 0> | ||
, <&key_physical_attrs 100 100 200 500 0 0 0> | ||
, <&key_physical_attrs 200 100 300 500 0 0 0> | ||
, <&key_physical_attrs 100 100 100 700 0 0 0> | ||
, <&key_physical_attrs 100 100 200 700 0 0 0> | ||
, <&key_physical_attrs 100 100 300 700 0 0 0> | ||
; | ||
|
||
}; | ||
|
||
left_numpad_layout: keymap_layout_2 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Left Numpad"; | ||
|
||
transform = <&left_numpad_transform>; | ||
|
||
keys // w h x y rot rx ry | ||
= <&key_physical_attrs 100 100 100 0 0 0 0> | ||
, <&key_physical_attrs 100 100 200 0 0 0 0> | ||
, <&key_physical_attrs 100 100 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 0 0 0 0> | ||
, <&key_physical_attrs 100 100 100 100 0 0 0> | ||
, <&key_physical_attrs 100 100 200 100 0 0 0> | ||
, <&key_physical_attrs 100 100 300 100 0 0 0> | ||
, <&key_physical_attrs 100 100 400 100 0 0 0> | ||
, <&key_physical_attrs 100 100 100 200 0 0 0> | ||
, <&key_physical_attrs 100 100 200 200 0 0 0> | ||
, <&key_physical_attrs 100 100 300 200 0 0 0> | ||
, <&key_physical_attrs 100 200 400 200 0 0 0> | ||
, <&key_physical_attrs 100 100 0 275 0 0 0> | ||
, <&key_physical_attrs 100 100 100 300 0 0 0> | ||
, <&key_physical_attrs 100 100 200 300 0 0 0> | ||
, <&key_physical_attrs 100 100 300 300 0 0 0> | ||
, <&key_physical_attrs 100 100 0 400 0 0 0> | ||
, <&key_physical_attrs 100 100 100 400 0 0 0> | ||
, <&key_physical_attrs 100 100 200 400 0 0 0> | ||
, <&key_physical_attrs 100 100 300 400 0 0 0> | ||
, <&key_physical_attrs 100 200 400 400 0 0 0> | ||
, <&key_physical_attrs 100 100 0 500 0 0 0> | ||
, <&key_physical_attrs 200 100 100 500 0 0 0> | ||
, <&key_physical_attrs 100 100 300 500 0 0 0> | ||
, <&key_physical_attrs 100 100 100 700 0 0 0> | ||
, <&key_physical_attrs 100 100 200 700 0 0 0> | ||
, <&key_physical_attrs 100 100 300 700 0 0 0> | ||
; | ||
}; | ||
|
||
position_map { | ||
compatible = "zmk,physical-layout-position-map"; | ||
all_1u_map { | ||
physical-layout = <&all_1u_layout>; | ||
positions | ||
= <11 21 23 25 22 17 18 19 20 13 14 15 8 9 10 27> | ||
, <28 29 16 26 24> | ||
; | ||
}; | ||
|
||
right_numpad_map { | ||
physical-layout = <&right_numpad_layout>; | ||
positions | ||
= < 8 17 23 22 21 16 18 19 20 13 14 15 9 10 11 24> | ||
, <25 26 27 28 29> | ||
; | ||
}; | ||
|
||
left_numpad_map { | ||
physical-layout = <&left_numpad_layout>; | ||
positions | ||
= <11 20 22 23 21 16 17 18 19 13 14 15 8 9 10 24> | ||
, <25 26 27 28 29> | ||
; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
# Uncomment to turn on logging, and set ZMK logging to debug output | ||
# CONFIG_ZMK_USB_LOGGING=y | ||
# To enable logging, use the snippet per the documentation. | ||
# Delaying log output may help catch issues close to startup. Uncomment and adjust if necessary (default is 1000ms) | ||
#CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=3000 | ||
|
||
# Uncomment both to enable encoder | ||
# Uncomment both to enable encoder(s) | ||
CONFIG_EC11=y | ||
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y | ||
|
||
# Uncomment to enable OLED | ||
CONFIG_ZMK_DISPLAY=y | ||
# Uncomment to disable OLED | ||
#CONFIG_ZMK_DISPLAY=n | ||
|
||
# Uncomment both to enable underglow | ||
# Note that this will only work if an implementation exists for your board; check under the shield folder for board-specific overlays. | ||
#CONFIG_ZMK_RGB_UNDERGLOW=y | ||
#CONFIG_WS2812_STRIP=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.