Defining PIN turnouts¶
PIN Turnouts operate by detecting the state of an output pin.
Define pin based turnouts using EXRAIL.
PIN_TURNOUT(id, vpin, "description")
id = Unique turnout ID within the CommandStation. All other turnout commands will refer to this turnout by this id.
vpin- the pin to be set HIGH for thrown and LOW for closed
description = A human-friendly description of the turnout that will appear in WiThrottle apps and Engine Driver. Note that this must be enclosed in quotes “”. In some cases the HIDDEN keyword can be used here to prevent the turnout being visible to the throttles.
For example:
PIN_TURNOUT(6,201,"Round the bend")