public async Task <bool> ShiftOutAsync(byte dataPin, byte clockPin, ArduinoBitOrder bitOrder, byte value) { bool returnValue = false; byte[] registerId = BitConverter.GetBytes((uint)ArduinoRegister.ShiftOut); await this.WriteAsync(new byte[] { registerId[0], registerId[1], dataPin, clockPin, (byte)bitOrder, value }); // *** // *** Check if the call was successful // *** if (await this.CheckResult()) { returnValue = true; } return(returnValue); }
public async Task<bool> ShiftOutAsync(byte dataPin, byte clockPin, ArduinoBitOrder bitOrder, byte value) { bool returnValue = false; byte[] registerId = BitConverter.GetBytes((uint)ArduinoRegister.ShiftOut); await this.WriteAsync(new byte[] { registerId[0], registerId[1], dataPin, clockPin, (byte)bitOrder, value }); // *** // *** Check if the call was successful // *** if (await this.CheckResult()) { returnValue = true; } return returnValue; }