public ADS7830() { var i2cBus = new Mono.Linux.I2C.I2CBus(0x01); this.device = new Mono.Linux.I2C.I2CDevice(i2cBus, ADS7830.GetAddress(false, false)); this.disposed = false; this.read = new byte[1]; this.write = new byte[1]; }
/// <summary> /// Constructor /// </summary> public DS1307() { //I2CDevice.Configuration i2cConfig = new I2CDevice.Configuration(ADDRESS, CLOCK_RATE_KHZ); I2CBus i2cBus = new Mono.Linux.I2C.I2CBus(0x01); var device = new Mono.Linux.I2C.I2CDevice(i2cBus, ADDRESS); this.i2c = device; this.ramAddress = new byte[RAM_ADDRESS_SIZE]; this.ramData = new byte[RAM_DATA_SIZE]; }
public ADS1115Device(byte channelsToReport) { datas = new int[4]; for (int i = 0; i < 4; i++) { datas[i] = 0; } _channelsToReport = channelsToReport; I2CBus i2cBus = new Mono.Linux.I2C.I2CBus(0x01); this._ads1115 = new Mono.Linux.I2C.I2CDevice(i2cBus, GetAddress(false, false)); this.disposed = false; this.read = new byte[1]; this.write = new byte[1]; }
public ADS1x15(int address = ADS1x15_DEFAULT_ADDRESS, object i2c = null) { I2CBus i2cBus = new Mono.Linux.I2C.I2CBus(0x01); this._device = new Mono.Linux.I2C.I2CDevice(i2cBus, GetAddress(false, false)); }
public I2CDevice(I2CBus bus, byte deviceAddress) { _bus = bus; _deviceAddress = deviceAddress; }