Ejemplo n.º 1
0
        public async Task DataIn(bool value)
        {
            _data.RemoveAt(_numOuputs - 1);
            _data.Insert(0, value);

            await _device.DigitalWriteAwaitable(_dataPin, value, _delay);

            await _device.DigitalPulseAwaitable(_clockPin, _delay);
        }
Ejemplo n.º 2
0
        public static async Task DigitalPulseAwaitable(this RemoteDevice device, byte port, int duration = 1)
        {
            await device.DigitalWriteAwaitable(port, true, duration);

            await Task.Delay(duration);

            await device.DigitalWriteAwaitable(port, false, duration);

            await Task.Delay(duration);
        }