Skip to content

Commit

Permalink
modified keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadteeto committed Jan 27, 2024
1 parent 60a8ead commit efad742
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 215 deletions.
21 changes: 21 additions & 0 deletions boards/shields/generic-numpad/generic-numpad.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <dt-bindings/zmk/matrix_transform.h>

/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix-transform = &default_transform;
};

default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <4>;
rows = <5>;
map = <
RC(0,0) RC(0,1) RC(0,2) RC(0,3)
RC(1,0) RC(1,1) RC(1,2) RC(1,3)
RC(2,0) RC(2,1) RC(2,2)
RC(3,0) RC(3,1) RC(3,2) RC(3,3)
RC(4,1) RC(4,3)
>;
};
}
33 changes: 22 additions & 11 deletions boards/shields/generic-numpad/generic-numpad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,28 @@
// ------------------default-----------------
// | LAYERSFT | / | * | - |
// | 7 | 8 | 9 | + |
// | 4 | 5 | 6 | NOP |
// | 4 | 5 | 6 | |
// | 1 | 2 | 3 | ENTER |
// | NOP | 0 | NOP | . |
// | | 0 | | . |


// ----------------------------functions-------------------------------
// | LAYERSFT | NOP | NOP | Bluetooth PREV |
// | NOP | NOP | NOP | Bluetooth Next |
// | NOP | OUT_TOG | NOP | NOP |
// | NOP | LAYERSFT | NOP | Bluetooth Next |
// | NOP | OUT_TOG | NOP | |
// |Bluetooth 0 | Bluetooth 1 |Bluetooth 2| reset |
// | NOP | BluetoothCLR | NOP | bootloader |
// | | BluetoothCLR | | NOP |


// --------------------action layer------------------
// | NOP | NOP | NOP | NOP |
// | NOP | NOP | NOP | |
// |Arrow Left | NOP |Arrow Right| NOP |
// | NOP | NOP | NOP | NOP |
// | | NOP | | Bootloader |




/ {
keymap {
Expand All @@ -29,27 +40,27 @@
bindings = <
&mo 1 &kp KP_DIVIDE &kp KP_MULTIPLY &kp KP_MINUS
&kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS
&kp KP_N4 &kp KP_N5 &kp KP_N6 &trans
&kp KP_N4 &kp KP_N5 &kp KP_N6
&kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_ENTER
&trans &kp KP_N0 &trans &kp KP_DOT
&kp KP_N0 &kp KP_DOT
>;
};
function_layer {
bindings = <
&trans &trans &trans &trans
&kp DEL &mo 2 &kp BSPC &trans
&trans &out OUT_TOG &trans &trans
&trans &out OUT_TOG &trans
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &sys_reset
&trans &bt BT_CLR &trans &trans
&bt BT_CLR &trans
>;
};
action_layer {
bindings = <
&trans &trans &trans &trans
&trans &trans &trans &trans
&kp LEFT &trans &kp RIGHT &trans
&kp LEFT &trans &kp RIGHT
&trans &trans &trans &trans
&trans &trans &trans &bootloader
&trans &bootloader
>;
};
};
Expand Down
6 changes: 0 additions & 6 deletions config/boards/generic-numpad/Kconfig.defconfig

This file was deleted.

2 changes: 0 additions & 2 deletions config/boards/generic-numpad/Kconfig.shield

This file was deleted.

46 changes: 0 additions & 46 deletions config/boards/generic-numpad/boards/nice_nano_v2.overlay

This file was deleted.

5 changes: 0 additions & 5 deletions config/boards/generic-numpad/generic-numpad.conf

This file was deleted.

56 changes: 0 additions & 56 deletions config/boards/generic-numpad/generic-numpad.keymap

This file was deleted.

25 changes: 0 additions & 25 deletions config/boards/generic-numpad/generic-numpad.overlay

This file was deleted.

8 changes: 0 additions & 8 deletions config/boards/generic-numpad/generic-numpad.zmk.yml

This file was deleted.

56 changes: 0 additions & 56 deletions config/generic-numpad.keymap

This file was deleted.

0 comments on commit efad742

Please sign in to comment.