Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Pcf8574OutputBinaryPin"/> class.
        /// </summary>
        /// <param name="connection">The connection.</param>
        /// <param name="pin">The pin.</param>
        public Pcf8574OutputBinaryPin(Pcf8574Device connection, Pcf8574Pin pin)
        {
            this.connection = connection;
            this.pin        = pin;

            connection.SetInputPin(pin, false);
        }
 /// <summary>
 /// Creates an input binary pin.
 /// </summary>
 /// <param name="connection">The connection.</param>
 /// <param name="pin">The pin.</param>
 /// <returns>The input pin.</returns>
 public static Pcf8574InputBinaryPin In(this Pcf8574Device connection, Pcf8574Pin pin)
 {
     return(new Pcf8574InputBinaryPin(connection, pin));
 }