smartknob-ha / firmware

smartknob firmware, esp-idf based instead of tasmota
GNU Affero General Public License v3.0
2 stars 1 forks source link

Magnetic Encoder - MT6701 Component #36

Closed SquaredPotato closed 1 month ago

SquaredPotato commented 4 months ago

This component should provide a simple way to read the angle from the MT6701.

Note that this sensor is already provided by the ESPP library thus special care should be taken for the design.

One option is to provide a basic interface realized by the motor class, which could be passed to the UI component. Another is to implement a separate, ESPP compatible sensor class which maybe wraps the existing ESPP code which we could then pass on separately to the UI and Motor component.

Or something, I'm sure better options emerge when work is started on this.