Skip to content

Commit

Permalink
keymap test gpio debug 11
Browse files Browse the repository at this point in the history
  • Loading branch information
willelind committed Sep 19, 2024
1 parent 644caab commit 4ff87ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
10 changes: 10 additions & 0 deletions boards/shields/keyboy/keyboy.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
#include <locale/keys_sv.h>

/ {
gpios {
compatible = "gpio-leds";
green: green {
gpios = <&shifter1 21 GPIO_ACTIVE_LOW>;
};
blue: blue {
gpios = <&shifter1 19 GPIO_ACTIVE_HIGH>;
};
};

keymap {
compatible = "zmk,keymap";

Expand Down
13 changes: 0 additions & 13 deletions boards/shields/keyboy/keyboy.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,6 @@
, <&gpio0 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
kscan1: kscan_1 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";

col-gpios
= <&shifter1 19 GPIO_ACTIVE_LOW>
, <&shifter1 21 GPIO_ACTIVE_HIGH>
;
row-gpios
= <&gpio0 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};

};

&gpio0 {
Expand Down

0 comments on commit 4ff87ee

Please sign in to comment.