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
155 stars 108 forks source link

Add support for servo turnouts directly connected to a gpio pin #376

Closed ABaboshin closed 8 months ago

ABaboshin commented 9 months ago

Analogous to servo turnouts the PinServoTurnout class address servo turnouts directly connected to a gpio pin of the command station.

Asbelos commented 9 months ago

Use of the Servo library will conflict with the extensive timer use in dcc-ex. In particular from the servo doc.."On boards other than the Mega, use of the library disables analogWrite() (PWM) functionality on pins 9 and 10, whether or not there is a Servo on those pins." But pin 9 is used by the motor shields. We do have servo control from the io-expander but can't really use it direct in the cs except under some restricted and complex combinations of hardware that will multiply our support matrix.

ABaboshin commented 9 months ago

@Asbelos thank you for explanation!