/// <summary> /// Creates an output analog pin. /// </summary> /// <param name="connection">The connection.</param> /// <param name="channel">The channel.</param> /// <returns>The pin.</returns> public static Mcp4822OutputAnalogPin Out(this Mcp4822Device connection, Mcp4822Channel channel) { return(new Mcp4822OutputAnalogPin(connection, channel)); }
/// <summary> /// Initializes a new instance of the <see cref="Mcp4822OutputAnalogPin" /> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="channel">The channel.</param> public Mcp4822OutputAnalogPin(Mcp4822Device connection, Mcp4822Channel channel) { this.connection = connection; this.channel = channel; }