Exemplo n.º 1
0
 /// <summary>
 /// Returns the current instance of the PinDMD API.
 /// </summary>
 /// <returns>New or current instance</returns>
 public static PinDmd3 GetInstance()
 {
     if (_instance == null)
     {
         _instance = new PinDmd3();
     }
     _instance.Init();
     return(_instance);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the current instance of the PinDMD API.
 /// </summary>
 /// <param name="port">Don't loop through available ports but use this COM port name.</param>
 /// <returns>New or current instance</returns>
 public static PinDmd3 GetInstance(string port)
 {
     if (_instance == null)
     {
         _instance = new PinDmd3 {
             Port = port
         };
     }
     _instance.Init();
     return(_instance);
 }