public async Task <byte[]> WriteToIncrementAsync(byte[] writeBuffer) { //GPIO-1 Chip Select (should become low) Strain Gage //Create a buffer with 3 bytes (initialize) //Write the data to the device return(await TrezorDevice.WriteAndReadAsync(writeBuffer)); }
public async Task <byte[]> WriteAndReadFromDeviceAsync() { //Create a buffer with 3 bytes (initialize) var writeBuffer = new byte[64]; writeBuffer[0] = 0x3f; writeBuffer[1] = 0x23; writeBuffer[2] = 0x23; //Write the data to the device return(await TrezorDevice.WriteAndReadAsync(writeBuffer).ConfigureAwait(false)); }