Skip to content

Commit

Permalink
fix gpio input
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaSaadAbdo authored Aug 23, 2024
1 parent 4691461 commit 29b964b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
17 changes: 2 additions & 15 deletions config/boards/shields/ghazal/ghazal.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,7 @@
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/zmk/matrix_transform.h>
// #include "vik_connector.dtsi"

#define INPUT_EV_KEY 0x01 /**< Key event */
#define INPUT_EV_REL 0x02 /**< Relative coordinate event */
#define INPUT_EV_ABS 0x03 /**< Absolute coordinate event */
#define INPUT_EV_MSC 0x04 /**< Miscellaneous event */
#define INPUT_EV_VENDOR_START 0xf0 /**< Vendor specific event start */
#define INPUT_EV_VENDOR_STOP 0xff /**< Vendor specific event stop */

#define INPUT_REL_X 0x00 /**< Relative X coordinate */
#define INPUT_REL_Y 0x01 /**< Relative Y coordinate */
#define INPUT_REL_WHEEL 0x08 /**< Relative wheel coordinate */
#define INPUT_REL_HWHEEL 0x06 /**< Relative horizontal wheel coordinate */
#define INPUT_REL_MISC 0x09 /**< Relative misc coordinate */
#include <zephyr/dt-bindings/input/input-event-codes.h>

&pinctrl {
spi1_default: spi1_default {
Expand Down Expand Up @@ -71,7 +58,7 @@ nice_view_spi: &spi1 {
pinctrl-0 = <&spi0_default>;
pinctrl-1 = <&spi0_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
cs-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;

trackball: trackball@0 {
status = "okay";
Expand Down
3 changes: 3 additions & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ manifest:
- name: zmk-pmw3610-driver
remote: badjeff
revision: main
# - name: zmk-input-behavior-listener
# remote: badjeff
# revision: main
# replace the one above with the commented one below when it gets merged into zmk
# must swap the zmk-fingerpunch-keyboards repo as well at the same time
# - name: zmk
Expand Down

0 comments on commit 29b964b

Please sign in to comment.