init
This commit is contained in:
commit
3fba4aba2d
13 changed files with 331 additions and 0 deletions
12
config/boards/shields/wyatt-3x5/Kconfig.defconfig
Normal file
12
config/boards/shields/wyatt-3x5/Kconfig.defconfig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
if SHIELD_wyatt-3x5
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "wyatt-3x5"
|
||||
|
||||
config USB_DEVICE_MANUFACTURER
|
||||
default "Tickle My Keys"
|
||||
|
||||
config ZMK_MOUSE
|
||||
default y
|
||||
|
||||
endif
|
||||
2
config/boards/shields/wyatt-3x5/Kconfig.shield
Normal file
2
config/boards/shields/wyatt-3x5/Kconfig.shield
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
config SHIELD_wyatt-3x5
|
||||
def_bool $(shields_list_contains,wyatt-3x5)
|
||||
21
config/boards/shields/wyatt-3x5/wyatt-3x5.keymap
Normal file
21
config/boards/shields/wyatt-3x5/wyatt-3x5.keymap
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
label = "wyatt-3x5";
|
||||
default_layer {
|
||||
label = "Default";
|
||||
bindings = <
|
||||
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BACKSPACE
|
||||
&kp ESC &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI_COLON &kp QUOTE
|
||||
&kp SHIFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp PERIOD &kp SLASH &kp CTRL
|
||||
&kp CTRL &kp ALT &kp GUI &kp ENTER &kp SPACE &kp SHIFT
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
42
config/boards/shields/wyatt-3x5/wyatt-3x5.overlay
Normal file
42
config/boards/shields/wyatt-3x5/wyatt-3x5.overlay
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &default_kscan;
|
||||
zmk,matrix_transform = &default_transform;
|
||||
/delete-property/ zephyr,console;
|
||||
/delete-property/ zephyr,shell-uart;
|
||||
};
|
||||
|
||||
default_kscan: kscan {
|
||||
compatible = "zmk,kscan-gpio-matrix";
|
||||
label = "default_kscan";
|
||||
diode-direction = "col2row";
|
||||
|
||||
col-gpios
|
||||
= <&gpio0 09 GPIO_ACTIVE_HIGH>
|
||||
, <&gpio0 10 GPIO_ACTIVE_HIGH>
|
||||
, <&gpio1 11 GPIO_ACTIVE_HIGH>
|
||||
, <&gpio1 13 GPIO_ACTIVE_HIGH>
|
||||
, <&gpio1 15 GPIO_ACTIVE_HIGH>
|
||||
;
|
||||
|
||||
row-gpios
|
||||
= <&gpio1 06 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&gpio1 04 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
};
|
||||
|
||||
default_transform: matrix_transform {
|
||||
compatible = "zmk,matrix-transform";
|
||||
columns = <5>;
|
||||
rows = <3>;
|
||||
map = <
|
||||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4)
|
||||
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4)
|
||||
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4)
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue