Ejemplo n.º 1
0
        public void Start(IGpioPin pin)
        {
            _pin = pin ?? throw new Exception("Change reader needs to be supplied a GPIO pin");

            Watch(_valueChangedFileSystemWatcher, _pin.GetValuePath());
            Watch(_directionChangedFileSystemWatcher, _pin.GetDirectionPath());
        }