Example #1
0
        public Task <Command> PullUpDnControlAsync(int pin, PullUpDn pud, byte target = 0)
        {
            Task <Command> task;

            BeginPullUpDnControl(pin, pud, target, GetCallbackTask(out task));
            return(task);
        }
Example #2
0
        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);
        }