コード例 #1
0
 /// <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));
 }
コード例 #2
0
ファイル: Mcp4822OutputAnalogPin.cs プロジェクト: hugener/Pi
 /// <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;
 }