forked from petejohanson/technikable-zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request petejohanson#5 from petejohanson/soft-off-support
feat: Add revisions and Technikable 1.1 support
- Loading branch information
Showing
8 changed files
with
57 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
board_check_revision(FORMAT MAJOR.MINOR.PATCH | ||
DEFAULT_REVISION 1.0.0 | ||
VALID_REVISIONS 1.0.0 1.1.0) |
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
Empty file.
Empty file.
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,3 @@ | ||
# Enable soft-off by default | ||
CONFIG_ZMK_PM_SOFT_OFF=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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/ { | ||
keys { | ||
compatible = "gpio-keys"; | ||
wakeup_key: wakeup_key { | ||
gpios = <&gpio1 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
|
||
behaviors { | ||
hw_soft_off: hw_soft_off { | ||
compatible = "zmk,behavior-soft-off"; | ||
#binding-cells = <0>; | ||
}; | ||
}; | ||
|
||
soft_off_direct_scan: soft_off_direct_scan { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
input-keys = <&wakeup_key>; | ||
wakeup-source; | ||
}; | ||
|
||
soft_off_wakers { | ||
compatible = "zmk,soft-off-wakeup-sources"; | ||
wakeup-sources = <&soft_off_direct_scan>; | ||
}; | ||
|
||
side_band_behavior_triggers: side_band_behavior_triggers { | ||
compatible = "zmk,kscan-sideband-behaviors"; | ||
wakeup-source; | ||
kscan = <&soft_off_direct_scan>; | ||
soft_off { | ||
column = <0>; | ||
row = <0>; | ||
bindings = <&hw_soft_off>; | ||
}; | ||
}; | ||
|
||
}; |
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,4 @@ | ||
--- | ||
include: | ||
- board: technikable | ||
- board: [email protected] |
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 |
---|---|---|
|
@@ -2,10 +2,17 @@ manifest: | |
remotes: | ||
- name: zmkfirmware | ||
url-base: https://github.com/zmkfirmware | ||
- name: petejohanson | ||
url-base: https://github.com/petejohanson | ||
projects: | ||
- name: zmk | ||
remote: zmkfirmware | ||
revision: main | ||
remote: petejohanson | ||
revision: features/soft-off-take-3 | ||
# Switch to below to use ZMK main. Will not work with the [email protected] target until | ||
# soft off PR https://github.com/zmkfirmware/zmk/pull/2085/ is merged | ||
# | ||
# remote: zmkfirmware | ||
# revision: main | ||
import: app/west.yml | ||
self: | ||
path: config |