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