Skip to content

Commit ebba0c8

Browse files
update trackball royale configs
1 parent fbb21bc commit ebba0c8

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

boards/shields/trackball/trackball.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ CONFIG_PMW3610_RUN_DOWNSHIFT_TIME_MS=2000
2626
CONFIG_PMW3610_REST1_DOWNSHIFT_TIME_MS=3000
2727
CONFIG_PMW3610_REST2_DOWNSHIFT_TIME_MS=30000
2828

29+
CONFIG_SENSOR_ROTATION=y
30+
2931
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

config/trackball_royal.keymap

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <behaviors.dtsi>
88
#include <dt-bindings/zmk/bt.h>
99
#include <dt-bindings/zmk/pointing.h>
10+
#include "input/processors/sensor_rotation.dtsi"
1011

1112
/ {
1213
default_transform: keymap_transform_0 {
@@ -78,12 +79,21 @@
7879
display-name = "Sniper";
7980
};
8081
};
82+
83+
input_processors {
84+
sensor_rotation: sensor_rotation {
85+
compatible = "zmk,input-processor-sensor-rotation";
86+
status = "okay";
87+
#input-processor-cells = <0>;
88+
rotation-angle = <5>;
89+
};
90+
};
8191
};
8292

8393
&trackball { cpi = <1000>; };
8494

8595
&trackball_listener {
86-
input-processors = <&zip_xy_scaler 9 20>;
96+
input-processors = <&zip_y_scaler 1 2>, <&zip_x_scaler 1 1>, <&sensor_rotation>;
8797

8898
scroller {
8999
layers = <1>;

config/west.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ manifest:
66
url-base: https://github.com/ergohaven
77
- name: kot149
88
url-base: https://github.com/kot149
9+
- name: hsgw
10+
url-base: https://github.com/hsgw
911
projects:
1012
- name: zmk
1113
remote: zmkfirmware
@@ -23,5 +25,8 @@ manifest:
2325
- name: zmk-scroll-snap
2426
remote: kot149
2527
revision: v1
28+
- name: zmk-feature-sensor_rotation
29+
remote: hsgw
30+
revision: e1a0186220ade99220d04dadf9735b758cfdf086
2631
self:
2732
path: config

0 commit comments

Comments
 (0)