コード例 #1
0
 public AbstractI2CDevice(ushort address, int clockRate, int timeout) // : base(new Configuration(address, clockRate))
 {
     myConfig = new I2CDevice.Configuration(address, clockRate);
     Timeout  = timeout;
     I2CBus.SetConfig(myConfig);
 }
コード例 #2
0
 public int Write(I2CDevice.I2CTransaction[] xActions, int timeout)
 {
     I2CBus.SetConfig(myConfig);
     return(I2CBus.Execute(xActions, timeout));
 }