private void InitMotorControl() { _motorControl = _kernel.Get <IMotorController>(); _motorControl.MotorPin1 = ConnectorPin.P1Pin11; _motorControl.MotorPin2 = ConnectorPin.P1Pin13; _motorControl.Initialize(); }
private void InitMotorControl() { _motorControl = _kernel.Get<IMotorController>(); _motorControl.MotorPin1 = ConnectorPin.P1Pin11; _motorControl.MotorPin2 = ConnectorPin.P1Pin13; _motorControl.Initialize(); }
private static void Main(string[] args) { var kernel = new StandardKernel(new Bindings()); kernel.Load(Assembly.GetExecutingAssembly()); motorControl = kernel.Get <IMotorController>(); motorControl.MotorPin1 = ConnectorPin.P1Pin11; motorControl.MotorPin2 = ConnectorPin.P1Pin13; motorControl.Initialize(); RegisterStopSwitches(); motorControl.StartTestRun(); while (true) { } }