generated from zmkfirmware/unified-zmk-config-template
-
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.
- Loading branch information
Showing
3 changed files
with
73 additions
and
72 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#include <hotdog_pad-layouts.dtsi> | ||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
physical_layout0: physical_layout_0 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Default"; | ||
|
||
keys | ||
= <&key_physical_attrs 100 100 0 0 0 0 0> | ||
, <&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> | ||
; | ||
}; | ||
physical_layout0: physical_layout_0 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Default"; | ||
keys | ||
= <&key_physical_attrs 100 100 0 0 0 0 0> | ||
, <&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> | ||
; | ||
}; | ||
}; |
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,39 +1,40 @@ | ||
/* | ||
* Copyright (c) 2024 Stephen Onnen | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
* Copyright (c) 2024 Stephen Onnen | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,physical-layout = &physical_layout0; | ||
}; | ||
|
||
kscan0: kscan_0 { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
|
||
input-gpios | ||
= <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
; | ||
}; | ||
|
||
encoder: encoder { | ||
compatible = "alps,ec11"; | ||
a-gpios = <&xiao_d 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
b-gpios = <&xiao_d 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
steps = <80>; | ||
status = "okay"; | ||
}; | ||
|
||
sensors: sensors { | ||
compatible = "zmk,keymap-sensors"; | ||
sensors = <&encoder>; | ||
triggers-per-rotation = <20>; | ||
}; | ||
#include <hotdog_pad-layouts.dtsi> | ||
|
||
/ { | ||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,physical-layout = &physical_layout0; | ||
}; | ||
|
||
kscan0: kscan_0 { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
|
||
input-gpios | ||
= <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
; | ||
}; | ||
|
||
encoder: encoder { | ||
compatible = "alps,ec11"; | ||
a-gpios = <&xiao_d 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
b-gpios = <&xiao_d 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
steps = <80>; | ||
status = "okay"; | ||
}; | ||
|
||
sensors: sensors { | ||
compatible = "zmk,keymap-sensors"; | ||
sensors = <&encoder>; | ||
triggers-per-rotation = <20>; | ||
}; | ||
}; |