Skip to content

Commit 1eb413d

Browse files
committed
feat: update trackpoint
1 parent 3a8e6ac commit 1eb413d

2 files changed

Lines changed: 44 additions & 41 deletions

File tree

boards/shields/charybdis/charybdis_right.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ZMK_POINTING=y
44
CONFIG_PMW3610=y
55
CONFIG_PMW3610_SWAP_XY=y
66
CONFIG_PMW3610_INVERT_X=y
7+
CONFIG_PMW3610_INVERT_Y=y
78
CONFIG_PMW3610_SMART_ALGORITHM=y
89

910
CONFIG_ZMK_EXT_POWER=y

boards/shields/charybdis/charybdis_right.overlay

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
reg = <0>;
5959
spi-max-frequency = <2000000>;
6060
irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
61-
cpi = <2560>;
61+
cpi = <1000>;
6262
evt-type = <INPUT_EV_REL>;
6363
x-input-code = <INPUT_REL_X>;
6464
y-input-code = <INPUT_REL_Y>;
@@ -80,6 +80,8 @@
8080
compatible = "zmk,input-listener";
8181
device = <&trackball>;
8282

83+
input-processors = <&zip_xy_scaler 1 10>;
84+
8385
scroller {
8486
layers = <3>;
8587
input-processors = <&zip_xy_to_scroll_mapper>;
@@ -89,43 +91,43 @@
8991

9092

9193
//RGB bus
92-
&pinctrl {
93-
spi3_default: spi3_default {
94-
group1 {
95-
psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>;
96-
};
97-
};
98-
99-
spi3_sleep: spi3_sleep {
100-
group1 {
101-
psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>;
102-
low-power-enable;
103-
};
104-
};
105-
};
106-
107-
&spi3 {
108-
compatible = "nordic,nrf-spim";
109-
status = "okay";
110-
111-
pinctrl-0 = <&spi3_default>;
112-
pinctrl-1 = <&spi3_sleep>;
113-
pinctrl-names = "default", "sleep";
114-
115-
led_strip: ws2812@0 {
116-
compatible = "worldsemi,ws2812-spi";
117-
118-
/* SPI */
119-
reg = <0>; /* ignored, but necessary for SPI bindings */
120-
spi-max-frequency = <4000000>;
121-
122-
/* WS2812 */
123-
chain-length = <27>; /* number of LEDs */
124-
spi-one-frame = <0x70>;
125-
spi-zero-frame = <0x40>;
126-
color-mapping = <LED_COLOR_ID_GREEN
127-
LED_COLOR_ID_RED
128-
LED_COLOR_ID_BLUE>;
129-
};
130-
};
131-
94+
//&pinctrl {
95+
// spi3_default: spi3_default {
96+
// group1 {
97+
// psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>;
98+
// };
99+
// };
100+
//
101+
// spi3_sleep: spi3_sleep {
102+
// group1 {
103+
// psels = <NRF_PSEL(SPIM_MOSI, 0, 10)>;
104+
// low-power-enable;
105+
// };
106+
// };
107+
//};
108+
//
109+
//&spi3 {
110+
// compatible = "nordic,nrf-spim";
111+
// status = "okay";
112+
//
113+
// pinctrl-0 = <&spi3_default>;
114+
// pinctrl-1 = <&spi3_sleep>;
115+
// pinctrl-names = "default", "sleep";
116+
//
117+
// led_strip: ws2812@0 {
118+
// compatible = "worldsemi,ws2812-spi";
119+
//
120+
// /* SPI */
121+
// reg = <0>; /* ignored, but necessary for SPI bindings */
122+
// spi-max-frequency = <4000000>;
123+
//
124+
// /* WS2812 */
125+
// chain-length = <27>; /* number of LEDs */
126+
// spi-one-frame = <0x70>;
127+
// spi-zero-frame = <0x40>;
128+
// color-mapping = <LED_COLOR_ID_GREEN
129+
// LED_COLOR_ID_RED
130+
// LED_COLOR_ID_BLUE>;
131+
// };
132+
//};
133+
//

0 commit comments

Comments
 (0)