Example #1
0
 public static void AssignDigitalInputs(string name, Digital[] input, EventBus.EventBus.EventCallback callback = null)
 {
     _mappedDigitalInputs[name] = input;
     if (callback != null)
     {
         EventBus.EventBus.NewTagListener($"input/{name}", callback);
     }
 }
Example #2
0
 public static void AssignDigitalInput(string name, Digital input, EventBus.EventBus.EventCallback callback = null) // TODO remove callback argument?
 {
     _mappedDigitalInputs[name] = new Digital[] { input };
     if (callback != null)
     {
         EventBus.EventBus.NewTagListener($"input/{name}", callback);
     }
 }