public void Dispose()
        {
            for (int i = 0; i < _pins.Length; ++i)
            {
                Pin pin = _pins[i];

                if (pin != null)
                {
                    pin.Dispose();
                    _pins[i] = null;
                }
            }

            Driver.Dispose();
        }
Example #2
0
 public void Dispose()
 {
     Pin?.Dispose();
     Pin = null;
     PinEventsToDetect = PinEvent.Any;
 }