File tree Expand file tree Collapse file tree
config/boards/shields/crosses Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 };
4343};
4444
45+ #include <zephyr/dt-bindings/input/input-event-codes.h>
46+
4547&spi0 {
4648 status = "okay";
4749 compatible = "nordic,nrf-spim";
5658 reg = <0>;
5759 spi-max-frequency = <2000000>;
5860 irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
59- scroll-layers = <1 >;
60- //snipe-layers = <2>;
61- // automouse-layer = <3>;
62- };
63- } ;
64-
65-
61+ cpi = <600 >;
62+ // swap-xy; /* optional */
63+ // invert-x; /* optional */
64+ // invert-y; /* optional */
65+ evt-type = <INPUT_EV_REL> ;
66+ x-input-code = <INPUT_REL_X>;
67+ y-input-code = <INPUT_REL_Y>;
6668
69+ force-awake;
70+ /* keep the sensor awake while ZMK activity state is ACTIVE,
71+ fallback to normal downshift mode after ZMK goes into IDLE / SLEEP mode.
72+ thus, the sensor would be a `wakeup-source` */
6773
74+ force-awake-4ms-mode;
75+ /* while force-awake is acitvated, enable this mode to force sampling per
76+ 4ms, where the default sampling rate is 8ms. */
77+ /* NOTE: apply this mode if you need 250Hz with direct USB connection. */
78+ };
79+ };
6880
6981/ {
70- trackball_listener {
71- compatible = "zmk,input-listener";
72- device = <&trackball>;
73- };
82+ trackball_listener {
83+ compatible = "zmk,input-listener";
84+ device = <&trackball>;
85+ };
7486};
7587
7688
You can’t perform that action at this time.
0 commit comments