private void WriteRead(byte[] writeBuffer, byte[] readBuffer) { bme280.Write(writeBuffer); for (var i = 0; i < readBuffer.Length; i++) { readBuffer[i] = bme280.Read(); } }
public override void Execute(II2CDevice i2CDevice) { i2CDevice.Write(GenerateRegisterSensorPackage()); byte[] buffer = new byte[9]; i2CDevice.Read(buffer); ParseResponse(buffer); }
/// <summary> /// Liest den Zustand der Port-Pins. /// </summary> /// <returns>1 Byte mit den 8 Zuständen des Ports</returns> public byte Read() { data = dev.Read(); return(data); }
internal byte[] ReadBytes(byte address, int length) { return(_device.Read(length)); }