Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }