private void InitializePins() { iBrakePin = mGpio.OpenPin(Pins.I_BRAKE_PIN); mGpio.SetDriveMode(iBrakePin, GpioPinDriveMode.Input); iReversePin = mGpio.OpenPin(Pins.I_REVERSE_PIN); mGpio.SetDriveMode(iReversePin, GpioPinDriveMode.Input); iTurnLeftPin = mGpio.OpenPin(Pins.I_TURNLEFT_PIN); mGpio.SetDriveMode(iTurnLeftPin, GpioPinDriveMode.Input); iTurnRightPin = mGpio.OpenPin(Pins.I_TURNRIGHT_PIN); mGpio.SetDriveMode(iTurnRightPin, GpioPinDriveMode.Input); }
private void InitializePins() { oLowbeamPin = mGpio.OpenPin(Pins.O_LOWBEAM_PIN); mGpio.SetDriveMode(oLowbeamPin, GpioPinDriveMode.Output); oHighbeamPin = mGpio.OpenPin(Pins.O_HIGHBEAM_PIN); mGpio.SetDriveMode(oHighbeamPin, GpioPinDriveMode.Output); oBrakePin = mGpio.OpenPin(Pins.O_BRAKE_PIN); mGpio.SetDriveMode(oBrakePin, GpioPinDriveMode.Output); oReversePin = mGpio.OpenPin(Pins.O_REVERSE_PIN); mGpio.SetDriveMode(oReversePin, GpioPinDriveMode.Output); oTurnLeftPin = mGpio.OpenPin(Pins.O_TURNLEFT_PIN); mGpio.SetDriveMode(oTurnLeftPin, GpioPinDriveMode.Output); oTurnRightPin = mGpio.OpenPin(Pins.O_TURNRIGHT_PIN); mGpio.SetDriveMode(oTurnRightPin, GpioPinDriveMode.Output); }