public Task <Command> PullUpDnControlAsync(int pin, PullUpDn pud, byte target = 0) { Task <Command> task; BeginPullUpDnControl(pin, pud, target, GetCallbackTask(out task)); return(task); }
public void BeginPullUpDnControl(int pin, PullUpDn pud, byte target = 0, Action <Command> callback = null) { var command = GetNewCommand(Operation.PullUpDnControl, pin, (int)pud, target, callback); SendCommand(_cmdSocket, command); }