Skip to content

Commit

Permalink
3x3 attempt 4
Browse files Browse the repository at this point in the history
  • Loading branch information
EricNeiman committed Feb 16, 2024
1 parent 8d43189 commit e88c706
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
22 changes: 22 additions & 0 deletions boards/shields/3x3macropad/3x3macropad.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>

/ {
keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp KP_N7 &kp KP_N8 &bootloader
&kp KP_N4 &kp KP_N5 &kp KP_N6
&kp KP_N1 &kp KP_N2 &kp KP_N3
>;
};
};
};
8 changes: 4 additions & 4 deletions boards/shields/3x3macropad/3x3macropad.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
lable = "default_kscan";
diode-direction = "col2row";

row-gpios = <&seeeduino_xiao 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
row-gpios = <&seeeduino_xiao 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&seeeduino_xiao 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&seeeduino_xiao 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
<&seeeduino_xiao 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;

col-gpios = <&seeeduino_xiao 6 GPIO_ACTIVE_HIGH>,
col-gpios = <&seeeduino_xiao 4 GPIO_ACTIVE_HIGH>,
<&seeeduino_xiao 5 GPIO_ACTIVE_HIGH>,
<&seeeduino_xiao 4 GPIO_ACTIVE_HIGH>;
<&seeeduino_xiao 6 GPIO_ACTIVE_HIGH>;

};

Expand Down

0 comments on commit e88c706

Please sign in to comment.