Skip to content

Commit

Permalink
fw: remap ploopy mouse keys
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobaltieri committed Sep 26, 2024
1 parent 03d0653 commit 81f16e2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions firmware/boards/balto/ploopy_mouse_nrf/ploopy_mouse_nrf.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
};
sw_1 {
gpios = <&pcal6408a 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
zephyr,code = <INPUT_BTN_FORWARD>;
zephyr,code = <INPUT_KEY_P>;
};
sw_2 {
gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
zephyr,code = <INPUT_BTN_LEFT>;
};
sw_3 {
gpios = <&pcal6408a 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
zephyr,code = <INPUT_BTN_TASK>;
zephyr,code = <INPUT_KEY_N>;
};
sw_4 {
gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
Expand All @@ -59,7 +59,7 @@
};
sw_7 {
gpios = <&pcal6408a 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
zephyr,code = <INPUT_BTN_EXTRA>;
zephyr,code = <INPUT_KEY_HOME>;
};
};

Expand Down Expand Up @@ -104,6 +104,12 @@
input-id = <1>;
report = <HID_MOUSE_REPORT(1)>;
};
hid-kbd {
compatible = "hid-kbd";
input = <&buttons>;
input-id = <2>;
report = <HID_KBD_REPORT(2, 0)>;
};
};
output {
hid-hog {
Expand Down

0 comments on commit 81f16e2

Please sign in to comment.