private void Pin1_TextChanged(object sender, TextChangedEventArgs e) { if (Pin1.Text.Length > 0) { Pin2.Focus(); } Pin = Pin1.Text + Pin2.Text + Pin3.Text + Pin4.Text; }
public void Initialize() { if (Pin1 == Pin2) { throw new NullReferenceException("Set the Pins before calling Initialize()"); } _pinConfig1 = Pin1.Output(); _pinConfig2 = Pin2.Output(); _settings = new GpioConnectionSettings() { Driver = new GpioConnectionDriver() }; _connection = new GpioConnection(_settings); _connection.Add(_pinConfig1); _connection.Add(_pinConfig2); }