-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
48 additions
and
36 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 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 +1,2 @@ | ||
CONFIG_ZMK_SLEEP=y | ||
CONFIG_ZMK_USB_LOGGING=n |
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,21 +1,21 @@ | ||
// Copyright 2022 jack (@waffle87) | ||
// SPDX-License-Identifier: MIT | ||
|
||
#define COMBO(name, keypress, keypos) \ | ||
combo_##name { \ | ||
timeout-ms = <50>; \ | ||
bindings = <keypress>; \ | ||
key-positions = <keypos>; \ | ||
}; | ||
#define COMBO(name, keypress, keypos) \ | ||
combo_##name { \ | ||
timeout - ms = <50>; \ | ||
bindings = <keypress>; \ | ||
key - positions = <keypos>; \ | ||
}; | ||
|
||
#define TAP_DANCE(name, keypress1, keypress2) \ | ||
td_##name: name { \ | ||
compatible = "zmk,behavior-tap-dance"; \ | ||
label = ###name; \ | ||
#binding-cells = <0>; \ | ||
tapping-term-ms = <200>; \ | ||
bindings = <keypress1>, <keypress2>; \ | ||
}; | ||
#define TAP_DANCE(name, keypress1, keypress2) \ | ||
td_##name : name { \ | ||
compatible = "zmk,behavior-tap-dance"; \ | ||
label = ## #name; \ | ||
#binding - cells = <0>; \ | ||
tapping - term - ms = <200>; \ | ||
bindings = <keypress1>, <keypress2>; \ | ||
}; | ||
|
||
#define HRML(k1,k2,k3,k4) &hm LALT k1 &hm LGUI k2 &hm LCTRL k3 &hm LSHFT k4 | ||
#define HRMR(k1,k2,k3,k4) &hm RSHFT k1 &hm RCTRL k2 &hm RGUI k3 &hm RALT k4 | ||
#define HRML(k1, k2, k3, k4) &hm LALT k1 &hm LGUI k2 &hm LCTRL k3 &hm LSHFT k4 | ||
#define HRMR(k1, k2, k3, k4) &hm RSHFT k1 &hm RCTRL k2 &hm RGUI k3 &hm RALT k4 |
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,2 @@ | ||
CONFIG_SPI=y | ||
CONFIG_ZMK_KSCAN_MATRIX_POLLING=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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
&xiao_spi { | ||
miso-pin = <6>; | ||
&spi2_default { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>, | ||
<NRF_PSEL(SPIM_MOSI, 1, 15)>; | ||
}; | ||
}; | ||
|
||
&spi2_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(SPIM_SCK, 1, 13)>, | ||
<NRF_PSEL(SPIM_MOSI, 1, 15)>; | ||
}; | ||
}; |
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