Skip to content

Commit

Permalink
keymap test gpio debug
Browse files Browse the repository at this point in the history
  • Loading branch information
willelind committed Sep 19, 2024
1 parent bed8b1c commit ca25465
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
24 changes: 8 additions & 16 deletions boards/shields/keyboy/keyboy.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,17 @@
};
};

&shifter1 {
pin@21 {
gpio-hog;
gpios = <21 GPIO_ACTIVE_HIGH>;
/* Any other configuration parameters */
};
};

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

//gpios {
// compatible = "gpio-leds";
// green: green {
// gpios
// = <&shifter1 0 GPIO_ACTIVE_HIGH>
gpios {
compatible = "gpio-leds";
green: green {
gpios
= <&shifter1 21 GPIO_ACTIVE_HIGH>
// , <&shifter1 1 GPIO_ACTIVE_HIGH>
// , <&shifter1 2 GPIO_ACTIVE_HIGH>
// , <&shifter1 3 GPIO_ACTIVE_HIGH>
Expand All @@ -82,9 +74,9 @@
// , <&shifter1 20 GPIO_ACTIVE_HIGH>
// , <&shifter1 21 GPIO_ACTIVE_LOW>
// , <&shifter1 22 GPIO_ACTIVE_HIGH>
// ;
// };
//};
;
};
};

default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
Expand Down
1 change: 1 addition & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
include:
- board: rpi_pico
shield: keyboy
snippet: zmk-usb-logging

0 comments on commit ca25465

Please sign in to comment.