コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Dio016"/> class.
 /// </summary>
 /// <param name="i2c">The I2C master device.</param>
 /// <param name="slaveAddress">The bus address of the I2C device.</param>
 public Dio016(IFt4222I2cMaster i2c, byte slaveAddress = 0x24)
 {
     _ioExpander = new Pca9535(i2c, slaveAddress);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Dio84"/> class.
 /// </summary>
 /// <param name="i2c">The I2C master device.</param>
 /// <param name="slaveAddress">The bus address of the I2C device.</param>
 public Dio84(IFt4222I2cMaster i2c, int slaveAddress = 0x23)
 {
     _ioExpander = new Pca9535(i2c, slaveAddress);
 }