forked from kofal.net/zmk
Adding in code for jNumpad and pslgh
This commit is contained in:
10
app/boards/shields/pslgh/Kconfig.defconfig
Normal file
10
app/boards/shields/pslgh/Kconfig.defconfig
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Richard Jones
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
if SHIELD_PSLGH
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "PSLGH"
|
||||
|
||||
endif
|
||||
|
||||
5
app/boards/shields/pslgh/Kconfig.shield
Normal file
5
app/boards/shields/pslgh/Kconfig.shield
Normal file
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2020 Pete Johanson, Richard Jones
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_PSLGH
|
||||
def_bool $(shields_list_contains,pslgh)
|
||||
0
app/boards/shields/pslgh/pslgh.conf
Normal file
0
app/boards/shields/pslgh/pslgh.conf
Normal file
29
app/boards/shields/pslgh/pslgh.keymap
Normal file
29
app/boards/shields/pslgh/pslgh.keymap
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Pete Johanson, Richard Jones
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
default_layer {
|
||||
// -------------------
|
||||
// | | | | | A | S | J | K | L |
|
||||
// | UP |DOWN |ENTER| H | | | | | |
|
||||
// ----------------------
|
||||
bindings = <
|
||||
&trans &trans &trans &trans &kp A &kp S &kp J &kp K &kp L
|
||||
&trans &trans &kp RET &kp H &trans &trans &trans &trans &trans
|
||||
&kp UARW &kp DARW &trans &trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
57
app/boards/shields/pslgh/pslgh.overlay
Normal file
57
app/boards/shields/pslgh/pslgh.overlay
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Pete Johanson, Richard Jones
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/matrix-transform.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan0;
|
||||
};
|
||||
|
||||
kscan0: kscan {
|
||||
compatible = "zmk,kscan-gpio-matrix";
|
||||
label = "KSCAN";
|
||||
|
||||
diode-direction = "col2row";
|
||||
row-gpios
|
||||
= <&pro_micro_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
|
||||
col-gpios
|
||||
= <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 7 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 5 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 4 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 3 GPIO_ACTIVE_HIGH>
|
||||
;
|
||||
|
||||
};
|
||||
|
||||
bt_unpair_combo: bt_unpair_combo {
|
||||
compatible = "zmk,bt-unpair-combo";
|
||||
key-positions = <0 11>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
x x
|
||||
x x
|
||||
r1 x
|
||||
a down
|
||||
k up
|
||||
j enter
|
||||
s r2
|
||||
a h
|
||||
x x
|
||||
x r3
|
||||
*/
|
||||
Reference in New Issue
Block a user