/// <summary> /// Initializes a new instance of the <see cref="Mcp3002InputAnalogPin" /> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="channel">The channel.</param> public Mcp3002InputAnalogPin(Mcp3002SpiConnection connection, Mcp3002Channel channel) { this.connection = connection; this.channel = channel; }
/// <summary> /// Creates an analog input pin. /// </summary> /// <param name="connection">The connection.</param> /// <param name="channel">The channel.</param> /// <returns>The pin.</returns> public static Mcp3002InputAnalogPin In(this Mcp3002SpiConnection connection, Mcp3002Channel channel) { return(new Mcp3002InputAnalogPin(connection, channel)); }
/// <summary> /// Initializes a new instance of the <see cref="Mcp3002InputAnalogPin" /> class. /// </summary> /// <param name="connection">The connection.</param> /// <param name="channel">The channel.</param> public Mcp3002InputAnalogPin(Mcp3002SpiConnection connection, Mcp3002Channel channel) { this.connection = connection; this.channel = channel; }