/// <summary> /// Returns the current instance of the PIN2DMD API. In any case, /// the instance get (re-)initialized. /// </summary> /// <returns></returns> public static Pin2Dmd GetInstance() { if (_instance == null) { _instance = new Pin2Dmd(); } _instance.Init(); return(_instance); }
/// <summary> /// Returns the current instance of the PIN2DMD API. In any case, /// the instance get (re-)initialized. /// </summary> /// <returns></returns> public static Pin2Dmd GetInstance(int outputDelay) { if (_instance == null) { _instance = new Pin2Dmd { Delay = outputDelay }; } _instance.Init(); return(_instance); }