mirror of
https://github.com/dnlbauer/corax-keyboard.git
synced 2026-09-11 05:35:29 +00:00
scrollwheel
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
/ {
|
/ {
|
||||||
chosen {
|
chosen {
|
||||||
zmk,kscan = &kscan0;
|
zmk,kscan = &kscan0;
|
||||||
// zephyr,display = &oled; // TODO remove or keep?
|
|
||||||
zmk,matrix_transform = &default_transform;
|
zmk,matrix_transform = &default_transform;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -47,8 +46,8 @@ RC(0,3) RC(1,3) RC(2,3) RC(3,3) RC(4,3) RC(5,3) RC(5,4) RC(6,4) RC(6,3) RC(7,3)
|
|||||||
right_encoder: encoder_right {
|
right_encoder: encoder_right {
|
||||||
compatible = "alps,ec11";
|
compatible = "alps,ec11";
|
||||||
label = "RIGHT_ENCODER";
|
label = "RIGHT_ENCODER";
|
||||||
a-gpios = <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
a-gpios = <&pro_micro 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
b-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
b-gpios = <&pro_micro 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
resolution = <4>;
|
resolution = <4>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
&kp LGUI &kp LALT &kp LCTRL &mo 1 &kp RET &kp SPACE &mo 2 &kp RCTRL &kp RALT &kp RGUI
|
&kp LGUI &kp LALT &kp LCTRL &mo 1 &kp RET &kp SPACE &mo 2 &kp RCTRL &kp RALT &kp RGUI
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_DN PG_UP>;
|
||||||
};
|
};
|
||||||
|
|
||||||
lower_layer {
|
lower_layer {
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_DN PG_UP>;
|
||||||
};
|
};
|
||||||
|
|
||||||
raise_layer {
|
raise_layer {
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
|
|
||||||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
|
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_DN PG_UP>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ url: https://github.com/dnlbauer/splitkeyboard
|
|||||||
requires: [pro_micro]
|
requires: [pro_micro]
|
||||||
features:
|
features:
|
||||||
- keys
|
- keys
|
||||||
# - encoder TODO use
|
- encoder
|
||||||
siblings:
|
siblings:
|
||||||
- ownkb_left
|
- ownkb_left
|
||||||
- ownkb_right
|
- ownkb_right
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
// &left_encoder {
|
&left_encoder {
|
||||||
// status = "okay";
|
status = "okay";
|
||||||
// };
|
};
|
||||||
|
|||||||
@@ -28,6 +28,6 @@
|
|||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
// &right_encoder {
|
&right_encoder {
|
||||||
// status = "okay";
|
status = "okay";
|
||||||
// };
|
};
|
||||||
|
|||||||
3
zmk-config/config/ownkb.conf
Normal file
3
zmk-config/config/ownkb.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Uncomment these two lines to add support for encoders
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
||||||
Reference in New Issue
Block a user