Files
2026-06-17 14:00:51 +02:00

14 lines
299 B
Python

# Jython Siglet that sets the state of the first output to the state of the first input
import jmri
import jarray
turnout = None
def defineIO():
global turnout
turnout = jarray.array(inputs, jmri.NamedBean)[0]
def setOutput():
turnouts.provide("output").setState(turnout.getState())