-
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
1 parent
b44a6c2
commit 0183663
Showing
9 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
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,35 @@ | ||
#include <dt-bindings/zmk/matrix_transform.h> | ||
|
||
/ { | ||
chosen { | ||
zmk,kscan = &default_kscan; | ||
zmk,matrix_transform = &default_transform; | ||
}; | ||
|
||
default_kscan: kscan { | ||
compatible = "zmk,kscan-gpio-matric"; | ||
lable = "default_kscan"; | ||
diode-direction = "col2row" | ||
|
||
row-gpios = <&seeeduino_xiao 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>, | ||
<&seeeduino_xiao 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>, | ||
<&seeeduino_xiao 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; | ||
|
||
col-gpios = <&seeeduino_xiao 6 GPIO_ACTIVE_HIGH>, | ||
<&seeeduino_xiao 5 GPIO_ACTIVE_HIGH>, | ||
<&seeeduino_xiao 4 GPIO_ACTIVE_HIGH>; | ||
|
||
}; | ||
|
||
default_transform: matrix_transform { | ||
compatible = "zmk,matrix-transform"; | ||
rows = <3>; | ||
cols = <3>; | ||
|
||
map = < | ||
RC(0, 0), RC(0, 1), RC(0, 2), | ||
RC(1, 0), RC(1, 1), RC(1, 2), | ||
RC(2, 0), RC(2, 1), RC(2, 2) | ||
>; | ||
}; | ||
}; |
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,4 @@ | ||
if SHIELD_3X3MACROPAD | ||
|
||
config ZMK_KEYBOARD_NAME | ||
default "3x3macropad" |
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 SHIELD_3X3MACROPAD | ||
def_bool $(shields_list_contains, 3x3macropad) |
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
--- | ||
include: | ||
- board: seeeduino_xiao | ||
shield: hummingbird | ||
shield: 3x3macropad |