Skip to content

Commit

Permalink
encoder enable
Browse files Browse the repository at this point in the history
  • Loading branch information
glebsexy committed Jul 9, 2024
1 parent f165915 commit ea8bd43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion config/boards/shields/sexy_artsey_3d/sexy_artsey_3d.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@
#CONFIG_ZMK_MOUSE=y
#CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=3000
CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=3000
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
10 changes: 5 additions & 5 deletions config/boards/shields/sexy_artsey_3d/sexy_artsey_3d.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
// Include the direct GPIO driver...
direct {
kscan = <&kscan2>;
row-offset = <2>; // ...and shift it to not overlap
column-offset = <4>; // ...and shift it to not overlap
};
};

Expand All @@ -55,9 +55,9 @@

col-gpios
= <&xiao_d 0 GPIO_ACTIVE_HIGH>
, <&xiao_d 1 GPIO_ACTIVE_HIGH>
, <&xiao_d 2 GPIO_ACTIVE_HIGH>
, <&xiao_d 3 GPIO_ACTIVE_HIGH>
, <&xiao_d 1 GPIO_ACTIVE_HIGH>
, <&xiao_d 2 GPIO_ACTIVE_HIGH>
, <&xiao_d 3 GPIO_ACTIVE_HIGH>
;

};
Expand All @@ -78,7 +78,7 @@
label = "MAIN_ENCODER";
a-gpios = <&gpio0 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio0 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <2>;
resolution = <4>;
};

sensors {
Expand Down

0 comments on commit ea8bd43

Please sign in to comment.