feat(boards): add encoder support to planck

This commit is contained in:
Seth Milliken
2024-02-09 01:02:49 -08:00
committed by Pete Johanson
parent ccf0380179
commit b44ec381f6
4 changed files with 25 additions and 0 deletions

View File

@@ -44,6 +44,20 @@
;
};
encoder: encoder {
compatible = "alps,ec11";
a-gpios = <&gpiob 12 GPIO_PULL_UP>;
b-gpios = <&gpiob 13 GPIO_PULL_UP>;
steps = <80>;
status = "disabled";
};
sensors: sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder>;
triggers-per-rotation = <20>;
};
layout_grid_transform:
keymap_transform_0 {
compatible = "zmk,matrix-transform";