/// <summary> /// Closes this instance. /// </summary> public void Close() { clockPin.Dispose(); selectSlavePin.Dispose(); if (mosiPin != null) { mosiPin.Dispose(); } if (misoPin != null) { misoPin.Dispose(); } }
/// <summary> /// Closes the connection. /// </summary> public void Close() { triggerPin.Dispose(); echoPin.Dispose(); }