DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
156 stars 108 forks source link

Rotary encoder #255

Closed peteGSX closed 1 year ago

peteGSX commented 2 years ago

This PR is to add the IO_RotaryEncoder.h device driver to the PORTX_HAL branch which should have no impact.

Also included in this branch though are the IFRE(vpin, position) and ONCHANGE(vpin) EX-RAIL commands that have been added.

IFRE() is specific to the rotary encoder, whereas ONCHANGE() should be able to be used for any sensor changing value, with the caveat that the existing device drivers will need to be updated to enable using it.