// set digital signals for each direction public void Direction(OneDirection value) { switch (value) { case OneDirection.Forwards: _port1.Write(true); _port2.Write(false); break; case OneDirection.Backwards: _port1.Write(false); _port2.Write(true); break; case OneDirection.Stopped: _port1.Write(false); _port2.Write(false); break; } }
public void Direction(OneDirection value) { Stack.Add("Direction(" + value + ")"); }