refactor(sensors): ec11 rotation sensor value in degrees.

* Add new `steps` property to the `aips,ec11` binding, to make
  the driver properly report degrees in the rotation delta channel.
* Handle old sensor values in sensor rotate behavior.
This commit is contained in:
Peter Johanson
2021-12-02 15:07:29 +00:00
committed by Pete Johanson
parent 2244bd3d81
commit 295ed83409
6 changed files with 38 additions and 9 deletions

View File

@@ -3,6 +3,8 @@
menuconfig EC11
bool "EC11 Incremental Encoder Sensor"
default y
depends on DT_HAS_ALPS_EC11_ENABLED
depends on GPIO
help
Enable driver for EC11 incremental encoder sensors.