Skip to content

Define Servo Turnout Command

David edited this page Dec 14, 2021 · 1 revision

Usage

const options = {
    turnout: 12,
    pin: 100,
    thrownPosition: 410,
    closedPosition: 205,
    profile: 0
}

defineServoTurnoutCommand(options)
// returns '<T 12 SERVO 100 410 205 0>'
Clone this wiki locally