added mock display

This commit is contained in:
2025-09-18 08:37:33 +10:00
parent 6c2a68f5fe
commit 555e456b06

View File

@@ -9,6 +9,7 @@
chosen {
zmk,kscan = &mock_kscan;
zmk,physical-layout = &josefadamcik_sofle_layout;
zephyr,display = &mock_display;
};
mock_kscan: mock_kscan_0 {
@@ -18,6 +19,28 @@
events = <0>;
};
mock_display: mock_display_0 {
compatible = "zmk,display-mock";
width = <128>;
height = <64>;
};
left_encoder: left_encoder {
compatible = "alps,ec11";
a-gpios = <&pro_micro 21 GPIO_ACTIVE_HIGH>;
b-gpios = <&pro_micro 20 GPIO_ACTIVE_HIGH>;
steps = <80>;
status = "disabled";
};
right_encoder: right_encoder {
compatible = "alps,ec11";
a-gpios = <&pro_micro 20 GPIO_ACTIVE_HIGH>;
b-gpios = <&pro_micro 21 GPIO_ACTIVE_HIGH>;
steps = <80>;
status = "disabled";
};
default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <16>;
@@ -30,4 +53,10 @@
RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,7) RC(4,8) RC(4,9) RC(4,10) RC(4,11)
>;
};
sensors: sensors {
compatible = "zmk,keymap-sensors";
sensors = <&left_encoder &right_encoder>;
triggers-per-rotation = <20>;
};
};