Skip to content

Commit

Permalink
CPI 800 divisor 2 and 4
Browse files Browse the repository at this point in the history
  • Loading branch information
280Zo committed Oct 28, 2024
1 parent 510ad57 commit 91d4a34
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion boards/shields/charybdis-bt/charybdis_pmw3610.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
reg = <0>;
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
cpi = <2400>;
cpi = <800>;
evt-type = <INPUT_EV_REL>;
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
Expand Down
2 changes: 1 addition & 1 deletion boards/shields/charybdis-dongle/charybdis_pmw3610.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
reg = <0>;
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
cpi = <2400>;
cpi = <800>;
evt-type = <INPUT_EV_REL>;
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
Expand Down
76 changes: 38 additions & 38 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,46 @@
#
---
include:
# QWERTY BT
- board: nice_nano_v2
shield: charybdis_left
keymap: qwerty
format: bt
artifact-name: charybdis_qwerty_left
- board: nice_nano_v2
shield: charybdis_right
keymap: qwerty
format: bt
artifact-name: charybdis_qwerty_right
# # QWERTY BT
# - board: nice_nano_v2
# shield: charybdis_left
# keymap: qwerty
# format: bt
# artifact-name: charybdis_qwerty_left
# - board: nice_nano_v2
# shield: charybdis_right
# keymap: qwerty
# format: bt
# artifact-name: charybdis_qwerty_right

# Colemak DH BT
- board: nice_nano_v2
shield: charybdis_left
keymap: colemak_dh
format: bt
artifact-name: charybdis_colemak_left
- board: nice_nano_v2
shield: charybdis_right
keymap: colemak_dh
format: bt
artifact-name: charybdis_colemak_right
# # Colemak DH BT
# - board: nice_nano_v2
# shield: charybdis_left
# keymap: colemak_dh
# format: bt
# artifact-name: charybdis_colemak_left
# - board: nice_nano_v2
# shield: charybdis_right
# keymap: colemak_dh
# format: bt
# artifact-name: charybdis_colemak_right

# QWERTY Dongle
- board: nice_nano_v2
shield: charybdis_left
keymap: qwerty
format: dongle
artifact-name: charybdis_qwerty_dongle_left
- board: nice_nano_v2
shield: charybdis_right
keymap: qwerty
format: dongle
artifact-name: charybdis_qwerty_dongle_right
- board: nice_nano_v2
shield: charybdis_dongle
keymap: qwerty
format: dongle
artifact-name: charybdis_qwerty_dongle
# # QWERTY Dongle
# - board: nice_nano_v2
# shield: charybdis_left
# keymap: qwerty
# format: dongle
# artifact-name: charybdis_qwerty_dongle_left
# - board: nice_nano_v2
# shield: charybdis_right
# keymap: qwerty
# format: dongle
# artifact-name: charybdis_qwerty_dongle_right
# - board: nice_nano_v2
# shield: charybdis_dongle
# keymap: qwerty
# format: dongle
# artifact-name: charybdis_qwerty_dongle

# Colemak DH Dongle
- board: nice_nano_v2
Expand Down
8 changes: 4 additions & 4 deletions config/charybdis.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
scale-multiplier = <1>;
scale-divisor = <3>;
scale-divisor = <2>;
bindings = <&ib_toggle_layer 7>;
};

Expand All @@ -33,7 +33,7 @@
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
scale-multiplier = <1>;
scale-divisor = <6>;
scale-divisor = <4>;
};

/* input config for mouse scroll mode */
Expand All @@ -45,7 +45,7 @@
x-input-code = <INPUT_REL_MISC>;
y-input-code = <INPUT_REL_WHEEL>;
y-invert;
bindings = <&ib_wheel_scaler 1 16>;
bindings = <&ib_wheel_scaler 1 14>;
};

/* define a resolution down scaler only for INPUT_REL_WHEEL */
Expand All @@ -60,7 +60,7 @@
ib_toggle_layer: ib_toggle_layer {
compatible = "zmk,input-behavior-tog-layer";
#binding-cells = <1>;
time-to-live-ms = <750>;
time-to-live-ms = <450>;
};

behaviors {
Expand Down

0 comments on commit 91d4a34

Please sign in to comment.